You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of note, the library does not report this error well. I have tested at fix by inserting the following in the the result.on("end", ... processing (line 21 below):
if(result.statusCode!==200){// reject(new Error(`Error: Status Code ${result.statusCode}`));console.log('STATUS CODE',result.statusCode);console.log('STATUS RESPONSE',rawResponseBody);}
When using AppSync custom domains (https://docs.aws.amazon.com/appsync/latest/devguide/custom-domain-name.html), the produced signature does not contain the region (cannot be inferred from URL) and so the auth fails.
I have tested a fix by inserting
region: "ap-southeast-2",
after line 34:appsync-client/src/createRequestObject.ts
Lines 30 to 42 in aeedb2b
Of note, the library does not report this error well. I have tested at fix by inserting the following in the the
result.on("end", ...
processing (line 21 below):appsync-client/src/httpsRequestPromisified.ts
Lines 20 to 37 in aeedb2b
I can submit a PR soon unless someone beats me to it.
The text was updated successfully, but these errors were encountered: