我可以如何在我的应用程序引擎应用程序中请求本地URL? [英] How I can request a local url in my app engine application?
问题描述
我使用Blob为我的应用程序存储json文件。我想要实现的是请求我的应用程序的内部URL以获取相关文件。我已经尝试urllib,urllib2,urlfetch,但每次我得到5秒 DeadlineExceededError:5超时
错误。有没有办法在我的获取请求中检索我的blob或者用于检索数据的替代方法?为了向您自己发出HTTP请求以便从Blob存储中读取数据 - 您可以简单地使用 BlobReader API 。
I am using Blobs to store json files for my application. What I am trying to achieve is to request an internal url of my application in order to get the relevant file. I have tried urllib, urllib2, urlfetch but every time I am getting a 5 second DeadlineExceededError: 5 timed out
error. Is there a way to retrieve my blob in my get request or an alternative for retrieving my data?
You don't need to make HTTP requests to yourself in order to read data from the blobstore - you can simply use the BlobReader API.
这篇关于我可以如何在我的应用程序引擎应用程序中请求本地URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!