Frage

If I use the following code:

result = urlfetch.fetch(url=url_get_devices, 
                        payload='',
                        method=urlfetch.POST,
                        headers=headers,
                        deadline=10
                        )         

then I am getting error:

File "D:\Work_GAE\test.py", line 27, in get deadline=10 TypeError: fetch() got an unexpected keyword argument 'deadline'

But if I remove deadline argument, then it works well. What is wrong here?

War es hilfreich?

Lösung

It sounds like you're using a very old version of the App Engine SDK. You should update to the latest version.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top