Resolve Error: “Invalid Login Attempt” When Using Token-Based Authentication for Sandbox on Restlet

Issue: When trying to use Token-Based Authentication in Sandbox Environment, user receives an error “Invalid Login Attempt”

Solution: A possible reason why the error is being received is that the Realm on the Authorization header was not declared properly. When using a Sandbox environment, the realm should be in uppercase. (e.g. 123456_SB1). Using lowercase will result to the error “Invalid Login Attempt” as the system will not be able to identify the account.

Note: In the URL of the request, it is not necessary to use uppercase and it also uses “-” instead of “_” for the realm. (e.g https://123456-sb1.restlets.api.netsuite.com)

Leave a comment

Your email address will not be published. Required fields are marked *