사용되지 않는 파일 api에서 코드를 변환하려고합니다.blobstore.create_gs_key를 사용하여 생성 된 BlobKey의 BlobInfo 객체
다음 코드는 SDK 서버에서 제대로 작동하지만 제작에 실패합니다. 내가 뭘하고 있니? 그렇다면 무엇이 잘못 되었습니까, 어떤 아이디어로 문제를 해결할 수 있습니까?
# Code earlier writes the file bs_file_name. This works fine because I can see the file
# in the Cloud Console.
bk = blobstore.create_gs_key("/gs" + bs_file_name)
assert(bk)
if not isinstance(bk,blobstore.BlobKey):
bk = blobstore.BlobKey(bk)
assert isinstance(bk,blobstore.BlobKey)
# next line fails here in production only
assert(blobstore.get(bk)) # <----------- blobstore.get(bk) returns None
당신은 점점 어떤 오류? – jterrace
오류가 발생하지 않습니다. 아무도받지 못합니다. 나는 분명히 할 것이다. – gae123
중요하지는 않지만'bk = blobstore.BlobKey (bk)'줄을 제거하면 어떻게됩니까? (또한 마지막 단락을 제외한 모든 어설트)? – alex