Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dualstack (IPv6) endpoint doesn't work #719

Open
keichan34 opened this issue May 9, 2024 · 0 comments
Open

Dualstack (IPv6) endpoint doesn't work #719

keichan34 opened this issue May 9, 2024 · 0 comments

Comments

@keichan34
Copy link

I'm trying to use s5cmd to upload many large files on a IPv6 native connection (IPv4 is available, but because it goes through a proxy, there's a performance penalty)

Here are some details on the error:

$ s5cmd version
v2.2.2-48f7e59
> s5cmd --endpoint-url 'https://s3.dualstack.ap-northeast-1.amazonaws.com' -r 1 -log debug ls s3://bucket-name/path/
DEBUG retryable error: SerializationError: failed to unmarshal error message
	status code: 400, request id:
caused by: UnmarshalError: failed to unmarshal error message
	00000000  3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31  |<?xml version="1|
00000010  2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 55 54  |.0" encoding="UT|
00000020  46 2d 38 22 3f 3e 0a 3c  45 72 72 6f 72 3e 3c 43  |F-8"?>.<Error><C|
00000030  6f 64 65 3e 49 6e 76 61  6c 69 64 52 65 71 75 65  |ode>InvalidReque|
00000040  73 74 3c 2f 43 6f 64 65  3e 3c 4d 65 73 73 61 67  |st</Code><Messag|
00000050  65 3e 4d 69 73 73 69 6e  67 20 72 65 71 75 69 72  |e>Missing requir|
00000060  65 64 20 68 65 61 64 65  72 20 66 6f 72 20 74 68  |ed header for th|
00000070  69 73 20 72 65 71 75 65  73 74 3a 20 78 2d 61 6d  |is request: x-am|
00000080  7a 2d 63 6f 6e 74 65 6e  74 2d 73 68 61 32 35 36  |z-content-sha256|
00000090  3c 2f 4d 65 73 73 61 67  65 3e 3c 52 65 71 75 65  |</Message><Reque|
000000a0  73 74 49 64 3e 4e 4d 43  30 42 57 33 35 41 52 30  |stId>NMC0BW35AR0|
000000b0  42 50 39 51 45 3c 2f 52  65 71 75 65 73 74 49 64  |BP9QE</RequestId|
000000c0  3e 3c 48 6f 73 74 49 64  3e 4e 74 70 56 56 39 58  |><HostId>NtpVV9X|
000000d0  5a 6d 63 64 6e 67 5a 5a  53 70 66 38 6f 31 72 76  |ZmcdngZZSpf8o1rv|
000000e0  6e 48 51 50 65 48 6c 39  4d 74 44 63 77 63 6a 41  |nHQPeHl9MtDcwcjA|
000000f0  6a 4b 71 55 36 79 44 56  61 5a 69 68 69 54 7a 53  |jKqU6yDVaZihiTzS|
00000100  52 36 30 32 54 47 4c 4e  33 37 5a 57 77 72 59 61  |R602TGLN37ZWwrYa|
00000110  4a 57 78 59 3d 3c 2f 48  6f 73 74 49 64 3e 3c 2f  |JWxY=</HostId></|
00000120  45 72 72 6f 72 3e                                 |Error>|

caused by: unknown error response tag, {{ Error} []}
DEBUG retryable error: SerializationError: failed to unmarshal error message
	status code: 400, request id:
caused by: UnmarshalError: failed to unmarshal error message
...

Looking at the error, I see a related issue: #542
I tried to look at the source code to see if there were any obvious places where the handling would be different, but I wasn't able to find anything obvious.

Anyone know if there's an easy way to enable dualstack for s5cmd?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant