我可以如何在我的应用程序引擎应用程序中请求本地URL? [英] How I can request a local url in my app engine application?

查看:122
本文介绍了我可以如何在我的应用程序引擎应用程序中请求本地URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆