Closed leandromonaco closed 10 months ago
Hi @leandromonaco, I can't reproduce this, I'm afraid. The steps I took:
docker run --expose=5000 motoserver/moto:4.1.13
curl http://172.17.0.2:5000/moto-api/recorder/start-recording
aws --endpoint-url=http://172.17.0.2:5000 cognito-idp create-user-pool --pool-name "LocalDev"
curl http://172.17.0.2:5000/moto-api/recorder/stop-recording
curl http://172.17.0.2:5000/moto-api/recorder/download-recording > recording.txt
I then restarted the Docker container. Uploading the recording to an empty MotoServer works fine:
curl -X POST http://172.17.0.2:5000/moto-api/recorder/upload-recording -T ~/recording.txt
curl http://172.17.0.2:5000/moto-api/recorder/replay-recording
aws --endpoint-url=http://172.17.0.2:5000 cognito-idp list-user-pools --max-result 10
The Recording Content
that you posted looks valid JSON as well, so I don't understand where that error comes from.
As a debugging step: what happens when you upload the recording file to Moto, and then immediately download it again? Is the content the same?
Thanks @bblommers, I'll check if there is another condition triggering this issue. I'll get back as soon as I can.
Hi @leandromonaco, any update on this?
hello @bblommers thanks for following up on this. I'm still facing the issue, but I could not pinpoint any specific reason. The only difference is the port number. I'm not sure if the OS and Docker version could also affect this behavior.
Are you able to create an open source project with an example, and a CI that demonstrates the failing test, @leandromonaco? I realize that's a bit of work, but that would be the easiest way for us to debug what's going on.
I'm going to close this for now - happy to have another look if you can show a repo that reproduces this problem.
I'm using
motoserver/moto:4.1.13
on DockerReproduction Steps
http://localhost:52009/moto-api/recorder/start-recording
aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool --pool-name "LocalDev"
http://localhost:52009/moto-api/recorder/download-recording
http://localhost:52009/moto-api/recorder/upload-recording
using the content from step 3 as bodyhttp://localhost:52009/moto-api/recorder/replay-recording
Result
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.
Docker log
Recording Content