Replies: 1 comment 1 reply
-
Hi @sannaroby I've tried to reproduce this (using the non-pro version of the image), and the output is as expected: Could you give more info, e.g node version, testcontainers version, container runtime, version, etc. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using testcontainers-node (v10.4.0) to start a container from the "localstack-pro" (v3.0.0) image, because I need to test the integration with some aws services.
Then I run some commands in this container: for example, in the code I need to create one sqs queue, so I run a command in this way:
let response = await localStackContainer.exec(["sh", "-c", "awslocal sqs create-queue --queue-name test-queue"]);
The received output (response.output property in the example above) is not a valid json and I can't parse it:
{"output":"\u0002\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000K{\"QueueUrl\": \"http://sqs.us-east-1.localhost:4566/000000000000/test-queue\"}","exitCode":0}
Have you idea about I can solve this problem?
Thanks for your support.
Beta Was this translation helpful? Give feedback.
All reactions