["code": access.not.granted, "message": Access not granted]
z
zhu Xue
started a topic
over 1 year ago
I am integrating the interface in the swagger of https://swaggerui.myscript.com into the Java project. When the session is called with RestTemplte, the response message is ["code": access.not.granted, "message": Access not granted], when When I put the same allpicationKey and the generated hamc and the corresponding body in the swagger, I can be accessed and successfully return the corresponding recognition result. I don't know if anyone has encountered the same problem? Can you give me some advice?
zhu Xue
I am integrating the interface in the swagger of https://swaggerui.myscript.com into the Java project. When the session is called with RestTemplte, the response message is ["code": access.not.granted, "message": Access not granted], when When I put the same allpicationKey and the generated hamc and the corresponding body in the swagger, I can be accessed and successfully return the corresponding recognition result. I don't know if anyone has encountered the same problem? Can you give me some advice?
Dear Zhu Xue,
thank you for contacting us and your question.
First, did you try to temporarily disable the HMAC in your application profile? This will allow to make ensure if the issue is in your HMAC computation. You can disable it as explained into the following post: https://developer-support.myscript.com/support/discussions/topics/16000007936
If this works, can you ensure you compute the HMAC as indicated in our documentation: https://developer.myscript.com/support/account/registering-myscript-cloud/#computing-the-hmac-value
If HMAC is not the issue, can you please provide a full request, so that we can replay it and see what is wrong.
Best regards,
Olivier
Olivier @MyScript
Dear Zhu Xue,
thank you for contacting us and your question.
First, did you try to temporarily disable the HMAC in your application profile? This will allow to make ensure if the issue is in your HMAC computation. You can disable it as explained into the following post: https://developer-support.myscript.com/support/discussions/topics/16000007936
If this works, can you ensure you compute the HMAC as indicated in our documentation: https://developer.myscript.com/support/account/registering-myscript-cloud/#computing-the-hmac-value
If HMAC is not the issue, can you please provide a full request, so that we can replay it and see what is wrong.
Best regards,
Olivier