[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
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey, I am no longer working on this project. So I will tag: @scotthart |
Beta Was this translation helpful? Give feedback.
-
@FengYikai710 Yes,
Resulted in requests being sent to a listening emulator running on 127.0.0.1 port 9000. |
Beta Was this translation helpful? Give feedback.
@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!