Thanks for the reply, Adam. I’m using a library that uses a socket because
I need to access Betfair with a client-side certificate. Is there a way to
use a client-side certificate with URL Fetch?

Relevant Go code for the method that communicates with Betfair is here:

cert, err := tls.LoadX509KeyPair(s.config.CertFile, s.config.KeyFile)
if err != nil {
return nil, err
}
ssl := &tls.Config {
Certificates: []tls.Certificate{cert},
InsecureSkipVerify: true,
}
ssl.Rand = rand.Reader
s.httpClient = &http.Client {
Transport: &http.Transport {
Dial: func(network, addr string) (net.Conn, error) {
return socket.Dial(c, network, addr)
},
TLSClientConfig: ssl,
},
}

res, err := s.httpClient.Do(req)





On Tue, Jan 19, 2016 at 2:20 PM, Adam (Cloud Platform Support) <
[email protected]> wrote:

> Are you accessing the Betfair API via URL Fetch or Sockets? Are you able
> to share the feedback from Betfair on which IP is sending the request?
> Also, does Betfair share any information on how they perform geolocation on
> IPs (such as a public database, regional registry lookup or other method)?
>
> One thing you could try is switching to Sockets if you are currently using
> URL Fetch or vice-versa.
>
> On Sunday, January 17, 2016 at 10:10:23 AM UTC-5, Eli Dourado wrote:
>>
>>
>> I have an appengine app that I created in the europe-west region that has
>> been running fine for months, but inexplicably, a couple days ago it seems
>> to have stopped being served from that region. I am using the app to access
>> the Betfair API, which is restricted from the US but available in Europe.
>> Because of the sudden change, the app's attempts to log in to Betfair are
>> now failing. In the console, the location is still listed as europe-west,
>> but I guess the IP it is being served from geolocates to Mountain View, and
>> this is breaking my app. What can I do? Is there a configuration option for
>> app.yaml or something similar to force the app to serve from Europe?
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/8ofMpp05MgQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/f7ba94c4-e7b2-418f-a32e-500413699c9e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/f7ba94c4-e7b2-418f-a32e-500413699c9e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALWZihiafpXHJbOj4QtfF_T9kD_tRr48joH2JSWg36Crb8GggQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to