Closed hkorhola closed 8 years ago
host: ".herokuapp.com",
you need the full host: http://yourwebsite.herokuapp.com
Hi,
I don't think it is the problem. Because the client makes the POST request
to correct "HTTPS://
So the first part https:://... is OK but the join function for HOST and PATH doesnt work. 25.3.2016 13.49 "rhymes" notifications@github.com kirjoitti:
host: ".herokuapp.com",
you need the full host: http://yourwebsite.herokuapp.com
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/adelevie/parse-ruby-client/issues/205#issuecomment-201247803
Ah, now I realize, that in my copy-paste there is characters missing. Sorry @rhymes . Configuration is like this:
Parse.init(application_id:"jkuH8vvNl6PdYBeLoxvAYXXXX",
api_key: "MPNe2GM23uxsgiEuuYYYY",
quiet: false,
host: "arcane-brook-xxxxx.herokuapp.com",
path: "/parse")
And this gives:
both URI are relative
In source code there is the appending of "https://" for the beginning, hence it's not in host. As mentioned, it works OK without the parameter "path". I cannot join the PATH to the HOST. I tried different combinations:
1 host
None works for me...
Henri
@hkorhola as I mentioned, you have to put the entire host, with the protocol.
This works:
Parse.init(application_id:"jkuH8vvNl6PdYBeLoxvAYXXXX",
api_key: "MPNe2GM23uxsgiEuuYYYY",
quiet: false,
host: "http://arcane-brook-xxxxx.herokuapp.com",
path: "/parse")
I have migrated my Parse backend from Parse.com to a Heroku hosted. Now I tried to configure this Rails gem to point to my Heroku Parse backend.
I get the following error: both URI are relative:
2016-03-24T21:45:12.687459+00:00 app[web.1]: #ActionDispatch::Request:0x007fe1b904f018 2016-03-24T21:45:12.687496+00:00 app[web.1]: [DEPRECATION]
init
is deprecated. Please usecreate
instead. 2016-03-24T21:45:12.697373+00:00 app[web.1]: #Userauth:0x007fe1b90bbf38 2016-03-24T21:45:12.700946+00:00 app[web.1]: 2016-03-24T21:45:12.793166+00:00 app[web.1]: propsing: both URI are relativethe configuration for gem is as instructed:
Parse.init ... quiet: false, host: ".herokuapp.com",
path: "/parse")
What is the correct configuration form for host and path?