Return URL issues

New Member
24 0 0
Okay everything is going great my app is coming along nicely since I move away from python and back to ruby on rails.. (Activeresource is amazing, git, capify, and modrails have made my life so much easier!) I am now starting to test the live version and when I change the "Return URL" in my shopify partners page I am having a funny problem. If I keep it set to http://localhost:3000/login/finalize I have been able to locally debug and test my app without any problems. But when I change it to the live server http://shopify.mydomain.com/login/finalize The redirect doesnt work I get something funny like. http://shop.myshopify.com/admin/api/.mydomain.com/login/finalize?shop=shop.myshopify.com&signature=1... is it becaue i'm using "shopify" as my subdomain? Maybe I should change that huh :) any ideas? Thanks!
0 Likes
Shopify Staff
Shopify Staff
195 0 3

Hi jmorrin,

Having “shopify” as your subdomain shouldn’t matter. I’d like to look into your case specifically, so let’s move this into a private thread in Shopify Support.

Make a ticket there and I’ll dive in.

Edward Ocampo-Gooding – Shopify Developer Advocate
0 Likes
Shopify Staff
Shopify Staff
2045 0 40

Make sure that your return address contains http:// in it .

Tobias Lütke - Shopify CEO // http://twitter.com/tobi
0 Likes
New Member
24 0 0

LOL i had to double check but yes I do have http:// :)

0 Likes
Shopify Staff
Shopify Staff
195 0 3

(Just for thread completion – this issue has been fixed.)

Edward Ocampo-Gooding – Shopify Developer Advocate
0 Likes
Shopify Staff
Shopify Staff
2045 0 40

Yea, in fact the issue was that shopify appeared in the URL. We had a really strange problem with a rewrite rule in one of our web load balancers. Thanks for bringing this to our attention. This is the kind of oddball issue which doesn’t tend to be reported and so annoys unsuspecting customers for long times usually. As Edward said he fixed the issue yesterday.

Tobias Lütke - Shopify CEO // http://twitter.com/tobi
0 Likes
New Member
24 0 0

When it happened I thought to myself.. Hmm maybe I shouldnt use shopify as my subdomain :)

You guys were quick to fix it, thanks!

0 Likes
Tourist
7 0 1

I’m getting the same issue as the original post on my live app; all the variables are appended to the end of the URL for the login/finalize action on my server. The URL looks like:

http://shopifyreminders.com/login/finalize?shop=specialtycomfort.myshopify.com&;signature=1707bea6f141bd74f8a67f5f808d6a72&t=d620f9c6b399354489e89bf76a4955da&timestamp=1246484515

I turned the app into development mode, and also get the error:

comparison of String with Bignum failed

I don’t think I changed anything in the login controller. Something strange going on with the session? Something with ‘shopify’ in my actual domain name? (I registered shopifyreminders.com)

0 Likes
Shopify Staff
Shopify Staff
195 0 3

Hi Josh,

That URL looks right. Take a look at http://api.shopify.com/authentication.html to see how those vars are used. You can ignore the signature and timestamp.

Try using a freshly created rails app with the shopify_app plugin; do you still get that error?

Edward Ocampo-Gooding – Shopify Developer Advocate
0 Likes
Shopify Staff
Shopify Staff
55 0 0

@Josh I can take the blame for that one. There was a typo in the shopify_app plugin.

This issue should be fixed if you just update your shopify_app plugin.

$ script/plugin install -f git://github.com/Shopify/shopify_app.git
Jesse Storimer | Shopify Developer | jesse@jadedpixel.com | http://www.jstorimer.com
0 Likes