iink SDK Web

Answered

Starting production release and getting code: "access.not.granted"

 I'm starting my production release and it seems my server IP address has been blacklisted in some way.

I get:

code: "access.not.granted"

message: "Access not granted"

type: "error"

But when I use the same credentials in a local environment they work fine. I added the server IP to the filter so if you want to investigate, you can grab the IP from there on my account.


Best Answer

Dear Robert,


thank you for contacting us.


Currently, the “access.not.granted” error (error 401) can occur for 2 reasons ; either the application key doesn’t exist or the hmac key has not been properly computed (please refer to the 401 error): https://developer.myscript.com/docs/interactive-ink/1.3/web/rest/architecture/#errors


In a first time, I would invite you to check the application key. It shall indeed be the same than the one declared in your application.

Then, once you can confirm your application key is correct, you shall ensure to compute properly the hmac key: https://developer.myscript.com/support/account/registering-myscript-cloud/#identification-of-your-application


If you face difficulties computing the hmac key, in a first time, you can disable it:

-First, login to your dashboard

-After login, go to the "Applications" tab
-Open the application you are using
-Go to the bottom of the page
-You will then have your "Application key", "Enable HMAC" and the "HMAC Key"
-Uncheck the "Enable HMAC"
-You shall then be able to run request without computing the HMAC key.

=>You should then be able to send requests to your server.


Then to compute your hmac key, you can follow our documentation: https://developer.myscript.com/support/account/registering-myscript-cloud/#computing-the-hmac-value

And the following topic on our forum also explains how you can proceed using postman: https://developer-support.myscript.com/support/discussions/topics/16000027079


Best regards,


Olivier

1 Comment

Answer

Dear Robert,


thank you for contacting us.


Currently, the “access.not.granted” error (error 401) can occur for 2 reasons ; either the application key doesn’t exist or the hmac key has not been properly computed (please refer to the 401 error): https://developer.myscript.com/docs/interactive-ink/1.3/web/rest/architecture/#errors


In a first time, I would invite you to check the application key. It shall indeed be the same than the one declared in your application.

Then, once you can confirm your application key is correct, you shall ensure to compute properly the hmac key: https://developer.myscript.com/support/account/registering-myscript-cloud/#identification-of-your-application


If you face difficulties computing the hmac key, in a first time, you can disable it:

-First, login to your dashboard

-After login, go to the "Applications" tab
-Open the application you are using
-Go to the bottom of the page
-You will then have your "Application key", "Enable HMAC" and the "HMAC Key"
-Uncheck the "Enable HMAC"
-You shall then be able to run request without computing the HMAC key.

=>You should then be able to send requests to your server.


Then to compute your hmac key, you can follow our documentation: https://developer.myscript.com/support/account/registering-myscript-cloud/#computing-the-hmac-value

And the following topic on our forum also explains how you can proceed using postman: https://developer-support.myscript.com/support/discussions/topics/16000027079


Best regards,


Olivier