WAI
Status Update
Comments
sa...@google.com <sa...@google.com> #2
Hello.
I am closing this issue because the body of the Bug is empty. Feel free to open a new one and fill in all the required fields.
Have a nice day!
pi...@shiftkey.com <pi...@shiftkey.com> #3
Hello Again!
Thank you for taking a look. I don't think this is the case: Shoudn't be returned something like this: 403 The daily limit was exceeded ?
403 is returned from third party service (403 happen because of geo restrictions on that service). Some POST request return 200 some 403 depending on Google server that send request I guess.
I wonder if there is a sollution for this kind of problem like setting one server or location for Google Script. I don't want to set loop to wait until 200 status code.
Many thanks!
Piotr
Thank you for taking a look. I don't think this is the case: Shoudn't be returned something like this: 403 The daily limit was exceeded ?
403 is returned from third party service (403 happen because of geo restrictions on that service). Some POST request return 200 some 403 depending on Google server that send request I guess.
I wonder if there is a sollution for this kind of problem like setting one server or location for Google Script. I don't want to set loop to wait until 200 status code.
Many thanks!
Piotr
Description
I'm using UrlFetchApp to send POST requests to my service.
Since 05/15/2020 number of responses with 403 status increased from 1% to 45%.
After investigation seems that reason for that are geo restrictions that are set on our aws that block everything that don't come from US.
Seems that some request are coming from US and some aren't.
A small code sample that reliably reproduces the issue. The sample should run as-is or with minimal setup, without external dependencies.
var options = {
'method': 'post',
'contentType': 'application/json',
'payload': JSON.stringify(whateve),
};
UrlFetchApp.fetch(POST_URL, options)
What steps will reproduce the problem?
1. Send POST request using UrlFetchApp
What is the expected output?
Expected result would be request that are coming only form US location. Is there any way to set it somehow?
Thank you for your time.
Piotr