In Progress
Status Update
Comments
gk...@google.com <gk...@google.com> #2
Thanks for your report. We have a bug open to address this issue.
[Deleted User] <[Deleted User]> #3
Thanks. Any ETA for a fix at this point / What would be a reasonable estimate?
jp...@gmail.com <jp...@gmail.com> #5
the url to productforums.google.com is ok ? I get "There is no group named “apps-script”."
gk...@google.com <gk...@google.com> #6
An example of the alternative method slieberman mentioned is below. Note that you will need to use a valid URL instead of the example URL shown below.
function test() {
Logger.log('Basic Auth in URL');
try {
var response = UrlFetchApp.fetch('http://user1:user1@test.example.com ', {
muteHttpExceptions: true
});
Logger.log('Response Code: ' + response.getResponseCode());
} catch(e) {
Logger.log('Failure: ' + e);
}
Logger.log('Basic Auth in header');
var response = UrlFetchApp.fetch('http://test.example.com ', {
headers: {
'Authorization': 'Basic ' + Utilities.base64Encode('user1:user1')
},
muteHttpExceptions: true
});
Logger.log('Response Code: ' + response.getResponseCode());
}
function test() {
Logger.log('Basic Auth in URL');
try {
var response = UrlFetchApp.fetch('
muteHttpExceptions: true
});
Logger.log('Response Code: ' + response.getResponseCode());
} catch(e) {
Logger.log('Failure: ' + e);
}
Logger.log('Basic Auth in header');
var response = UrlFetchApp.fetch('
headers: {
'Authorization': 'Basic ' + Utilities.base64Encode('user1:user1')
},
muteHttpExceptions: true
});
Logger.log('Response Code: ' + response.getResponseCode());
}
[Deleted User] <[Deleted User]> #7
Hi,
I wonder, any progress in this matter.
I encounter the same problem using UrlFetchApp
Regards
I wonder, any progress in this matter.
I encounter the same problem using UrlFetchApp
Regards
ab...@gmail.com <ab...@gmail.com> #8
Hi I had a similar problem that occured randomly after a number of times the app was executed.
The Error was : Unexpected Error.
I found one reason that this might happen. In my code the GET call was adding on a filter array of parameters. As i did not initialize the array , the parametre was getting added and I assume that the length exceed some set limit and crashed.
Hopefully a check and error message can be given to warn other developers of this type of errors.
The Error was : Unexpected Error.
I found one reason that this might happen. In my code the GET call was adding on a filter array of parameters. As i did not initialize the array , the parametre was getting added and I assume that the length exceed some set limit and crashed.
Hopefully a check and error message can be given to warn other developers of this type of errors.
pa...@gmail.com <pa...@gmail.com> #9
I have an API which appears to have poorly executed http authentication that won't process correctly via the header, and will only accept it in the URL. Progress on this bug would be very helpful.
33...@gmail.com <33...@gmail.com> #10
I also encountered the same problems.
ry...@google.com <ry...@google.com>
ma...@gmail.com <ma...@gmail.com> #12
Any progress on this? I cannot use the basic headers as an alternative
ss...@gmail.com <ss...@gmail.com> #13
I am sending Credentials (Bearer token) in header only and still getting this error many times. (But not all the time).
We have apps published in G-suite marketplace and I am seeing lot of error logs with this error.
We have apps published in G-suite marketplace and I am seeing lot of error logs with this error.
Description
What steps will reproduce the problem?
----------------------------------------------
Use UrlFetchApp.fetch to perform an HTTP Basic Authentication Request with the credentials inserted in the URL (e.g.
----------------------------------------------
What is the expected output?
----------------------------------------------
The request should be fired
----------------------------------------------
What do you see instead?
----------------------------------------------
Instead UrlFetchApp throws the following error:
Unexpected error:
----------------------------------------------
Sample Code
----------------------------------------------
See
----------------------------------------------
Project Key
----------------------------------------------
We do not want to share as the issue is easily reproducible and our project contains private data (Keys to external APIs)
----------------------------------------------
On which browser & OS?
----------------------------------------------
Any