BrokerError503 string = "No snowflake proxies currently available." BrokerError400 string = "You sent an invalid offer in the request." BrokerErrorUnexpected string = "Unexpected error, no answer."
but on closer look, I don't see any problems with this. Closing.
Trac: Status: new to closed Resolution: N/Ato not a bug
I thought the problem was just in some tests. I am not sure, but it looks like this test is checking the for the literal string "No snowflake proxies currently available." rather than a status code of 503.
it looks like this test is checking the for the literal string "No snowflake proxies currently available." rather than a status code of 503.
No, I was mistaken. The test is just checking the text of the error message, which is okay. The broker returns an empty body for status 503, and here is where the status codes get translated into error strings.
case http.StatusServiceUnavailable: return nil, errors.New(BrokerError503) case http.StatusBadRequest: return nil, errors.New(BrokerError400)