[RestEndpointOption][IPV4 instead of Domain] Set RestEndpointOption with ip address resolved by dns 8.8.8.8, result in “The specified bucket does not exist." #15019
Answered
by
FengYikai710
FengYikai710
asked this question in
Q&A
|
Set RestEndpointOption with ipv4 address resolved by dns 8.8.8.8, and the https request failed with “The specified bucket does not exist.". Can RestEndpointOption set to ip address resolved by dns ? Is the domain "storage.googleapis.com" the only option for RestEndpointOption ? Could you help me with this @dbolduc, I'll be extremely grateful! |
Answered by
FengYikai710
Mar 23, 2025
Replies: 2 comments 5 replies
|
Hey, I am no longer working on this project. So I will tag: @scotthart |
0 replies
|
@FengYikai710 Yes, Resulted in requests being sent to a listening emulator running on 127.0.0.1 port 9000. |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@ddelgrosso1 Finally I figure out that the problem is caused by SNI field in TLS message,if I set CURLIOT_URL with IPV4,SNI is empty which lead to a ”NoSuchBucket" respond. Set the CURLOPT_CURL with "https://storage.googleapis.com:443" and CURLOPT_RESOLVE with “storage.googleapis.com:443:142.251.32.123” (142.251.32.123 is the result of dns resolve), curl will send TLS message to endporint 142.251.32.123 with SNI. I Customized CURLOPT_RESOLVE parameters in sdk and it works! Thanks for the help!