Can't Repro
Status Update
Comments
ce...@gmail.com <ce...@gmail.com> #2
I am still thinking that "SSLCertificateError" is projection of something else ... - maybe timeout???
ce...@gmail.com <ce...@gmail.com> #3
def make_fetch_call(rpc, url, payload=None, method=GET, headers={},
allow_truncated=False, follow_redirects=True,
validate_certificate=None):
"""Executes the RPC call to fetch a given HTTP URL.
The first argument is a UserRPC instance. See urlfetch.fetch for a
thorough description of remaining arguments.
Raises:
InvalidMethodError: if requested method is not in _VALID_METHODS
ResponseTooLargeError: if the response payload is too large
InvalidURLError: if there are issues with the content/size of the
requested URL
Returns:
The rpc object passed into the function.
"""
allow_truncated=False, follow_redirects=True,
validate_certificate=None):
"""Executes the RPC call to fetch a given HTTP URL.
The first argument is a UserRPC instance. See urlfetch.fetch for a
thorough description of remaining arguments.
Raises:
InvalidMethodError: if requested method is not in _VALID_METHODS
ResponseTooLargeError: if the response payload is too large
InvalidURLError: if there are issues with the content/size of the
requested URL
Returns:
The rpc object passed into the function.
"""
ro...@gmail.com <ro...@gmail.com> #4
Recently, I saw similar certificate errors starting to appear when testing my code from the development server (locally, not on Google's servers in production).
The requested domain ishttps://graph.facebook.com , so regular SSL certificate errors are highly unlikely, and, as you say here, the error probably lies somewhere else...
The requested domain is
jo...@google.com <jo...@google.com> #5
Hi! Thanks for the issue report. As I understand, this was a problem with URLFetch in the development server. It has been fixed since App Engine release 1.9.7.
ni...@gmail.com <ni...@gmail.com> #6
I have run into this issue and I'm on: 1.9.17.107
This has *not* been fixed.
Please re-open.
> File "/app/admin.py", line 725, in get_image_from_filepicker
result = urlfetch.fetch(url)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/urlfetch.py", line 271, in fetch
return rpc.get_result()
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 613, in get_result
return self.__get_result_hook(self)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/urlfetch.py", line 425, in _get_fetch_result
> 'Invalid and/or missing SSL certificate for URL: ' + url)
> SSLCertificateError: Invalid and/or missing SSL certificate for URL:https://www.filepicker.io/api/file/fooooooooooooo
This has *not* been fixed.
Please re-open.
> File "/app/admin.py", line 725, in get_image_from_filepicker
result = urlfetch.fetch(url)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/urlfetch.py", line 271, in fetch
return rpc.get_result()
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 613, in get_result
return self.__get_result_hook(self)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/urlfetch.py", line 425, in _get_fetch_result
> 'Invalid and/or missing SSL certificate for URL: ' + url)
> SSLCertificateError: Invalid and/or missing SSL certificate for URL:
[Deleted User] <[Deleted User]> #7
Hi, is the fix planned ?
js...@google.com <js...@google.com>
br...@gmail.com <br...@gmail.com> #8
I still see this happening. Version: 1.9.32 on OSX :/
Any news about this ?
Any news about this ?
ar...@google.com <ar...@google.com> #9
I've been running a test for a few days and haven't caught a single cert validation error, using urlfetch.make_fetch_call(rpc, url, validate_certificate=False). Is there a method we can test which will reliably reproduce this issue?
ar...@google.com <ar...@google.com> #10
I'm just posting an update to this thread as we haven't heard from you in a while. Please let us know if you can provide any information on how to reproduce the issue and we will be happy to look into this further.
ra...@google.com <ra...@google.com> #11
Every server mentioned in this thread has a cert with a wildcard CN.
ar...@google.com <ar...@google.com> #12
I've been testing against all of the domains mentioned in this thread but have not yet seen the cert error come up (1.9.34 on Debian Jessie). I'll need a method to reproduce the error at least somewhat reliably before I can submit an issue to the engineering team.
ar...@google.com <ar...@google.com> #13
As we've not been able to reproduce this issue I am closing this out, however if you are still affected please feel free to open a new issue with steps to reproduce and which refers back to this one for context.
ro...@gmail.com <ro...@gmail.com> #14
There is still a lot of people upvoting this thread on SO: http://stackoverflow.com/q/24106098/145997 (46 upvotes and counting).
Unfortunately, none of us came up with reliable reproducing steps. However the problem is still alive...
Unfortunately, none of us came up with reliable reproducing steps. However the problem is still alive...
[Deleted User] <[Deleted User]> #15
I get this issue with the following URL (and many others from the same domain): https://www.skandiafastigheter.se/PageFiles/212121/premise-30635001.jpg
using simply:
> urlfetch.fetch(url, validate_certificate=False, deadline=60)
I'm running 1.9.23 on OSX. I do not see this issue on the production environment.
It's happening consistently for me, so please let me know if there is something I can provide to ease the debugging.
using simply:
> urlfetch.fetch(url, validate_certificate=False, deadline=60)
I'm running 1.9.23 on OSX. I do not see this issue on the production environment.
It's happening consistently for me, so please let me know if there is something I can provide to ease the debugging.
jo...@peleteiro.net <jo...@peleteiro.net> #16
Are we getting rid of manual patches on local appengine? Please, it's insane.
Description
Invalid and/or missing SSL certificate for URL:
(x replace secret data)
It is ignore flag passed to function disabling certificate check - It looks that this flag is passed in invalid way.
rpc = urlfetch.create_rpc(deadline = 10)
urlfetch.make_fetch_call(rpc, restaurantViewImage.sourceUrl)
I think so since found such code in SDK (FLAG set to True or False check certificates - see documentation - False is not None == True is not None!):
if validate_certificate is not None:
request.set_mustvalidateservercertificate(validate_certificate)