-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
Library version:
serverless-offline-sqs": "^7.3.2"
Breaking code:
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.
tanguybernard
Metadata
Metadata
Assignees
Labels
No labels