issue w/ posgrest server on heroku

35 views
Skip to first unread message

Mike M

unread,
Feb 28, 2017, 10:21:09 PM2/28/17
to Catarse Dev
I am able to run a postgrest server locally. Both the js front end app and the rails app seems to run fine on my local machine, but I'm running into an error when I try to run it on heroku.

I can't seem to get the API to run properly.

This is the error I'm receiving:

XMLHttpRequest cannot load https://api.citizensupported.org/user_details?id=eq.2. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.citizensupported.org' is therefore not allowed access. The response had HTTP status code 503.

I'm using the button at https://elements.heroku.com/buttons/begriffs/postgrest to deploy the postgrest server -- I think this recently got upgraded to v0.4.0.0

Any advice?

I'm not sure if I'm following the right approach to running a postgrest server on heroku.

Giulliano Bueno

unread,
Mar 1, 2017, 3:14:42 AM3/1/17
to catar...@googlegroups.com
Hi Mike,


It doesn't look like a Catarse problem. Could you give us more detail or access to your code base, if it is open.


Best,

--
You received this message because you are subscribed to the Google Groups "Catarse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to catarse-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Giulliano A. Bueno
Tecnologia da Informação

Mike Mayer

unread,
Mar 1, 2017, 5:02:37 AM3/1/17
to catar...@googlegroups.com
thanks -- i solved it

was a configuration issue regarding the version of postgrest, version of postgres (i think) and the command used to launch the postgrest service

thanks for following up
You received this message because you are subscribed to a topic in the Google Groups "Catarse Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/catarse-dev/wgKpMReUdqU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to catarse-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages