Profile - "malformed JSON returned" on disconnecting ORCID

3 views
Skip to first unread message

Domingos Gonçalves

unread,
Sep 17, 2020, 5:34:20 AM9/17/20
to OpenConext Community
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


Thijs Kinkhorst

unread,
Sep 18, 2020, 11:41:26 AM9/18/20
to openc...@googlegroups.com
Hi Domingos,

Op 17-09-2020 om 11:34 schreef Domingos Gonçalves:
> we would like to have some support to understand why we are having a
> server error when we Disconnect our ORCID connection.

I can reproduce a problem, looks like a bug (so it's not your
installation). Indeed as you say the disconnect itself works fine, it just
has trouble presenting to the user that it has successfully happened. Will
investigate a bit further.


Cheers,
Thijs

Thijs Kinkhorst

unread,
Sep 20, 2020, 8:28:22 AM9/20/20
to openc...@googlegroups.com
Hi Domingos,

We are not sure from history where Profile and AA started to disagree on what the internal API should return. But we now made them agree again, if you upgrade AA to 2.1.0 you should no longer have the issue.


Cheers,
Thijs

> Op 18 sep. 2020 om 17:41 heeft Thijs Kinkhorst <thijs.k...@surf.nl> het volgende geschreven:
>
> Hi Domingos,

Domingos Gonçalves

unread,
Sep 21, 2020, 12:40:56 PM9/21/20
to OpenConext Community
Hi Thijs,

it's working fine with the new AA 2.1.0.

Thanks a lot.

Domingos Gonçalves
Reply all
Reply to author
Forward
0 new messages