Skip to main content

I am encountering an error while using JWTToken-based authentication. The error message states, "Resource for parameter [messageId] is not found," even though the messageId exists. We are performing these operations in the sandbox environment to ensure the application's readiness for graduation.


Here is the relevant code snippet:


static String CLIENT_ID = "XXXXX";

static String CLIENT_SECRET = "XXXXX";

static String JWT_TOKEN = "XXXXXXXXXXXXXXX";


restClient = new RestClient(CLIENT_ID, CLIENT_SECRET, SERVER_URL);

await restClient.Authorize(JWT_TOKEN);

var messageid = "13334139004";

var resp = await restClient.Restapi().Account().Extension().MessageStore(messageid).Get();



How do you know that the message id ("13334139004" is valid?

If it's a valid id, it could be that the message does not belong to the currently authenticated user extension. In that case, double check if the JWT token is generated for a super admin user or not.


Reply