Stalled requests on local instance
Right now I get no response on POST/PUT/PATCH requests locally and cannot get why.
Here is a CURL example of PATCH request:
curl --location --request PATCH 'http://localhost:8000/requests/4/' \
--header 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0' \
--header 'Accept: */*' \
--header 'Accept-Language: en' \
--header 'Referer: http://localhost:9000/en/contributor-dashboard/confirm_status_change/@http%3A//localhost%3A8000/requests/4/@' \
--header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjRlZjBiODA1YTMxM2RhOTBhNTEzZGEyNTM1MDgxMGY3In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAiLCJzdWIiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvdXNlcnMvYmFsZXNzYW4vIiwiYXVkIjoiMGNkYTUzYzQyMTAwNDU1N2E1NzcwNjcwOWZkMGUyYjYiLCJleHAiOjE2MTk3MDQ3NDgsImlhdCI6MTYxMzk0NDc0OCwiYXV0aF90aW1lIjoxNjEzOTQ0NzQ0LCJub25jZSI6IkFjLTlaZTc5ZW80WGRMWFpmbTROTWRVLW5fMFp2MDdsekNrRDJZTkJEY0UiLCJhdF9oYXNoIjoiZFE2U0tlNVhTWUk5R0RwaHl4b0VqUSJ9.EulYAm4kI3n9TRj4BI2JjTkAEJ-OXCSuJ5C3UBxvukXbtvQg56EC0j4f76SqDrZKMcSpb9fP5DTmcnDFfxgwC7RmkTxJHldflyGIIqbrh9r0K8QCAJfqRBznwhYfzfgD15THQbVNdpZCrgkcmSJWb35I6Bc9_JdLPQB-Rhl4LqLzHCS-ey4ld0KlLMDFwCVIdpDcov0UVU8EYVYv6qQnzQYqHyq_SGBKvQpoFLJfX1Xssz0-oAeQxD6d7_wVYnjvFD4gpml7TSPruNyU--9bj71koMh2Lz7JxsXaEz2F4nSGol3H1clU-di5syPBBoY_6eFQbJIaTsixHP99DyV9mw' \
--header 'content-type: application/ld+json' \
--header 'Pragma: no-cache' \
--header 'Cache-Control: no-cache' \
--header 'Origin: http://localhost:9000' \
--header 'Connection: keep-alive' \
--header 'Cookie: csrftoken=DOQ880kuhSWAneSM3hz0FbPxbP3CfObt16xE8pZE5IR3zxPUwRvWqSCm6egmxBXV; sessionid=idvlpfkw7cueznqzcun09arj4yxoeyum;' \
--data-raw '{
"status": "validated",
"reviewer": {
"@id": "http://localhost:8000/users/balessan/"
},
"@id": "http://localhost:8000/requests/4/",
"@context": {
"@vocab": "http://happy-dev.fr/owl/#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"ldp": "http://www.w3.org/ns/ldp#",
"foaf": "http://xmlns.com/foaf/0.1/",
"name": "rdfs:label",
"acl": "http://www.w3.org/ns/auth/acl#",
"permissions": "acl:accessControl",
"mode": "acl:mode",
"geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
"lat": "geo:lat",
"lng": "geo:long",
"searcherProfile": "http://happy-dev.fr/owl/#searcher_profile",
"contributorProfile": "http://happy-dev.fr/owl/#contributor_profile",
"inbox": "http://happy-dev.fr/owl/#inbox",
"object": "http://happy-dev.fr/owl/#object",
"author": "http://happy-dev.fr/owl/#author_user",
"account": "http://happy-dev.fr/owl/#account",
"jabberID": "foaf:jabberID",
"picture": "foaf:depiction"
}
}'
In the code I noted it blocks after the instruction:
self.perform_update(serializer)
in the method def update(self, request, *args, **kwargs):
of the views.py
file in Djangoldp. Any print after that instruction is called never appears in my console.
Called from the line
Any Ideas ?