SubmitCompleteEvent.getResults() is null in devmode

269 views
Skip to first unread message

Benjamin Seber

unread,
Dec 5, 2011, 2:10:42 PM12/5/11
to google-we...@googlegroups.com
Hi,

I'd like to upload an image and get it's serving URL through GAE ImagesServiceFactory.
Deployed on GAE it works perfectly. But running locally in devmode, there occurs following error in the javascript console:

Unsafe JavaScript attempt to access frame with URL http://t410:8888/upload?uploadedImageKey=xxx from frame with URL http://127.0.0.1:8888/photosharing/hosted.html?photosharing. Domains, protocols and ports must match.

Is there any workaround for devmode?

Thomas Broyer

unread,
Dec 6, 2011, 4:59:14 AM12/6/11
to google-we...@googlegroups.com
Try accessing your app using http://t410:8888/ instead of http://127.0.0.1:8888/
You'll likely have to pass the "-bindAddress t410" or "-bindAddress 0.0.0.0" option to the DevMode though: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode

Note that I never developped for AppEngine; there might be a way to tell the BlobstoreService#createUploadUrl to use http://127.0.0.1:8888/ as a prefix to the generated URL.

Benjamin Seber

unread,
Dec 6, 2011, 2:59:38 PM12/6/11
to google-we...@googlegroups.com
Thank you, Thomas. As so often, i've found a posting on stackoverflow after i asked here...

Will try things out tomorrow.

Reply all
Reply to author
Forward
0 new messages