After investigating further, things get more confusing.  I guess the
oauth stuff in the upload URL is as it should be, since disabling
oauth in my app did not change the presence of the oauth stuff in the
upload URL.

After watching the exchange between my client and GAE app with
fiddler, I realized that the 500 that was being returned was coming
from my GAE code and not the blobservice, and it contained an
exception that my GAE app produces when the blobstore calls the "on-
success" URL that is supplied to the
blobstoreService.createUploadUrl().  The exception is caused by the
blobstoreService.getUploadedBlobs() call returning an empty map.
What's confusing me is that evidently the blobstore is failing for
some reason, and yet it is still calling the "on-success" URL within
my app.  Is this the expected behavior when a blobstore upload fails?
It would be great to get some sort of meaningful error from the
blobstore, instead of just having the failure passed on to my app in
the form of an empty map.

On Nov 2, 9:59 pm, tempy <[email protected]> wrote:
> Hello,
> I have yet to get the blobstore functioning correctly in my app.  My
> code works in development, but not in production.
>
> I use the built-in oauth support and have an installed app connecting
> to the GAE app.  The installed app requests an upload URL from an
> endpoint that is secured by oauth, and I was surprised to see that
> BlobStoreService.CreateUploadURL() produces a URL that has all the
> oauth stuff in it.  Here is the URL it produced:
>
> http://MYAPPo.appspot.com/_ah/upload/?oauth_token=1%2FTRaFrr7-6m5xxxx...
>
> When my installed app then tried to POST to this URL, it gets a 500.
> The Blobstore then proceeds to call my GAE app with the URL I supplied
> to CreateUploadURL(), and passes along all the parameters that the
> client app sent to the Blobstore, but (as expected) without a
> Blobstore key.  I don't see any blobs in the blob viewer.
>
> I wonder if the oauth code is somehow at fault here, but other than
> that I don't really know where to start diagnosing this.
>
> Thanks,
> Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to