Hi,
we would like to have some support to understand why we are having a server error when we Disconnect our ORCID connection.
As you can see at the following figure on my profile I have a connection to an ORCID. The registration work fine.
But when we Disconnect the our ORCID we receive the following error
At the end the connection was broken as expected. The action of disconnecting the ORCID works fine too.
Looking at the logs we can find an error saying "Cannot read resource "disconnect/63": malformed JSON returned"
Log at /var/log/messages
Sep 17 09:54:07 papp04.rctsaai.pt openconext-profile[244235]: request.INFO: Matched route "profile.my_connections_overview". {"route":"profile.my_connections_overview","route_parameters":{"_controller":"OpenConext\\ProfileBundle\\Controller\\MyConnectionsController::overviewAction","_route":"profile.my_connections_overview"},"request_uri":"https://profile.rctsaai.pt/my-connections","method":"POST"} []
Sep 17 09:54:07 papp04.rctsaai.pt openconext-profile[244235]: app.NOTICE: Showing My Connections page [] []
Sep 17 09:54:07 papp04.rctsaai.pt openconext-profile[244235]: app.NOTICE: The authenticated user is disconnecting ORCID iD. [] []
Sep 17 09:54:07 papp04.rctsaai.pt openconext-profile[244235]: request.CRITICAL: Uncaught PHP Exception OpenConext\AttributeAggregationApiClientBundle\Exception\MalformedResponseException: "Cannot read resource "disconnect/63": malformed JSON returned" at /opt/openconext/OpenConext-profile-2.0.3/src/OpenConext/AttributeAggregationApiClientBundle/Http/JsonApiClient.php line 98 {"exception":"[object] (OpenConext\\AttributeAggregationApiClientBundle\\Exception\\MalformedResponseException(code: 0): Cannot read resource \"disconnect/63\": malformed JSON returned at /opt/openconext/OpenConext-profile-2.0.3/src/OpenConext/AttributeAggregationApiClientBundle/Http/JsonApiClient.php:98)"} []
Sep 17 09:54:07 papp04.rctsaai.pt Apache-PROFILE: 193.137.196.149 - - [17/Sep/2020:09:54:07 +0100] "POST /my-connections HTTP/1.1" 500 5294 "https://profile.rctsaai.pt/my-connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0" "172.16.10.97"
Log at /var/log/attribute-aggregation/attribute-aggregation.log
2020-09-17 09:54:07,473 DEBUG [http-nio-9198-exec-9] aa.control.AccountController:121 - Accounts [Account(id=63, urn=urn:collab:person:fccn.pt:dgoncalves, schacHome=fccn.pt, accountType=ORCID, linkedId=http://orcid.org/0000-0001-5008-1337 created=2020-09-17T08:53:47Z)] for urn:collab:person:fccn.pt:dgoncalves
2020-09-17 09:54:07,602 DEBUG [http-nio-9198-exec-9] aa.control.AccountController:131 - Deleting account Account(id=63, urn=urn:collab:person:fccn.pt:dgoncalves, schacHome=fccn.pt, accountType=ORCID, linkedId=http://orcid.org/0000-0001-5008-1337, created=2020-09-17T08:53:47Z)
Any idea?
Our environment:
Profile: 2.0.3
Attribute Aggregation: 2.0.17
Best Regards,
Domingos Gonçalves