BlobStoreService.createUploadUrl(String url) problem

291 views
Skip to first unread message

David Edelstein

unread,
Sep 30, 2011, 4:09:19 PM9/30/11
to Google App Engine
When using BlobStoreService.createUploadUrl("/upload") in development
mode in Eclipse wht the GWT plug-in I am having the following
problem.

BlobStoreService.createUploadUrl("/upload") creates a URL with the
computer name as the domain (i.e. comp-4532:8888).

However, the GWT plug-in is running the server in hosted mode with the
domain 127.0.0.1:8888. I believe this is resulting in the URL being
null when it is returned to the forms SubmitCompleteHandler. It thinks
it's a cross domain request and nulling it out?

Does anyone else have this issue? Any idea what I'm doing wrong?

Thanks!

Krzysztof

unread,
Oct 14, 2011, 6:48:21 AM10/14/11
to Google App Engine
I've found a solution here: http://stackoverflow.com/questions/7476420/gwt-blobstore-error-calling-createuploadurl
Just use your computer name in dev mode instead of 127.0.0.1. In FF
you will be asked for adding this name to GWT dev plugin automaticly
and in Chrome you must do it yourself (as it is described at
stackoverflow), I dont't know about IE.
I'm developing my app quite a while and I didn't have this problem
before. Some lib upgrade (GAE/GWT/GPE ?) to the new version must had
caused it.
I'm wondering, since I didn't try my app on the production, if there
will be some cross-domain problems when the app is deployed on GAE and
is using Blobstore URLs...

Regards,
Krzysztof

Drew Spencer

unread,
Nov 14, 2011, 11:40:18 AM11/14/11
to google-a...@googlegroups.com
Just wanted to say that I also have this problem. I'm using the workaround as described in the stackoverflow solution, but it would be nice to know why this is happening.

More people must be having this problem, surely?

Drew

Nicolas Montmarquette

unread,
Dec 8, 2011, 1:38:52 AM12/8/11
to google-a...@googlegroups.com
Yes I am experiencing the same issue on OSX  I wasn't able to use my computer name instead

Nicolas Montmarquette

unread,
Dec 8, 2011, 1:41:27 AM12/8/11
to google-a...@googlegroups.com
I am experiencing the same issue with  OSX-Eclipse-Firefox I wasn't successful in using the workaround (using computer the actual machine name instead of 127.0.0.1) as it won't resolve on my setup right now. There must be something obvious I am overlooking.

Drew Spencer

unread,
Dec 8, 2011, 11:03:10 AM12/8/11
to google-a...@googlegroups.com
Instead of just passing my RPC call this:

GWT.getHostPageBaseURL()

I pass it this:

GWT.getHostPageBaseURL() + "TestApp1.html?gwt.codesvr=127.0.0.1:9997"

Where TestApp1 is the name of my module.
Reply all
Reply to author
Forward
0 new messages