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
await sqs.send(
new SendMessageCommand({
MessageBody: JSON.stringify(data),
QueueUrl: Config.TASKS_QUEUE_URL,
})
);
Stack trace:
SyntaxError: Unexpected token < in JSON at position 0\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.
at JSON.parse (<anonymous>)
at C:\\repo\\mono\\node_modules\\@aws-sdk\\core\\dist-cjs\\index.js:323:19
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at parseJsonErrorBody (C:\\repo\\mono\\node_modules\\@aws-sdk\\core\\dist-cjs\\index.js:336:17)
at de_CommandError (C:\\repo\\mono\\node_modules\\@aws-sdk\\client-sqs\\dist-cjs\\index.js:1191:11)
at C:\\repo\\mono\\node_modules\\@smithy\\middleware-serde\\dist-cjs\\index.js:35:20
at C:\\repo\\mono\\node_modules\\@smithy\\core\\dist-cjs\\index.js:165:18
at C:\\repo\\mono\\node_modules\\@smithy\\middleware-retry\\dist-cjs\\index.js:320:38
at C:\\repo\\mono\\node_modules\\@aws-sdk\\middleware-sdk-sqs\\dist-cjs\\index.js:130:16
at C:\\repo\\mono\\node_modules\\@aws-sdk\\middleware-logger\\dist-cjs\\index.js:33:22
at {the code I linked above}
What it's trying to parse:
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
How I tried fixing it:
Upgrading to serverless-offline-sqs 8.0.0. The error above just turned into an "UnknownError" instead.
The text was updated successfully, but these errors were encountered:
serg06
changed the title
Breaks when upgrading @aws-sdk from 3.226.0 to 3.556.0
serverless-offline-sqs breaks when upgrading @aws-sdk from 3.226.0 to 3.556.0
Apr 22, 2024
Hello, I have almost same issue with different dependencies
SyntaxError: Unexpected token 'T', "There was "... is not valid JSON
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.
at JSON.parse (<anonymous>)
Library version:
Breaking code:
Stack trace:
What it's trying to parse:
How I tried fixing it:
The text was updated successfully, but these errors were encountered: