Stream: finnish PHR
Topic: Error code 502120
Mikael Rinnetmäki (Oct 03 2019 at 15:39):
Any idea what may be causing this error?
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"processing","details":{"coding":[{"system":"http://phr.kanta.fi/fiphr-cs-errorcodes","code":"502120"}],"text":"Access denied by rule: Token is invalid for the requested operation."},"diagnostics":"Access denied by rule: Token is invalid for the requested operation."}]}
The scope should be OK and the token valid. Occurs with both PUT and POST, whereas GET does succeed.
Mikael Rinnetmäki (Oct 03 2019 at 15:43):
The code system at https://simplifier.net/finnishphr/fiphr-cs-errorcodes does mention 5021 as Token is invalid
and 5020 as Token is not sufficient for this operation
. Should 502120 be read as being some kind of a merge between those? :)
Eeva Turkka (Oct 04 2019 at 07:28):
The last two numbers "20" don't currently carry any extra meaning, so reading the first four digits is sufficient.
Mikael Rinnetmäki (Oct 04 2019 at 07:57):
With Eeva's kind help we found out that the request body was missing. Just marking this down in case someone runs into the same problem.
Thanks @Eeva Turkka!
Last updated: Apr 12 2022 at 19:14 UTC