These are chat archives for ushahidi/Community

15th
Apr 2016
Sam
@ihatehandles
Apr 15 2016 03:42
@rjmackay Thanks for the tip the other day regarding my npm challenges - it was my version of npm (and Node) that were behind the times. Sent a few PRs just to start things small, I've worked on a couple more JS stuff but I'll bring that in gradually before moving to the backend where I ran into a couple more issues which may need fixing, and also for the Validator classes' unit tests. Weekend starts today for me (no work Fridays), have a good one.
Ushbot
@ushbot
Apr 15 2016 03:43
[Robbie Mackay, Ushahidi] Cool. Thanks :)
Sam
@ihatehandles
Apr 15 2016 03:54
@rjmackay Anytime. Did @SergioMergio solve their issue? The screenshot they sent shows they have the platform and the platform-client on different (sub)domains, so they run into the CORS issue which shown in console. I ran into the same when setting up on mine. Not sure if there was a note on that in the docs. I was using Apache so the instructions will be slightly different, they only have to add a CORS header allowing their platform-client to hit the server. Maybe like how it is shown here http://enable-cors.org/server_nginx.html
Ushbot
@ushbot
Apr 15 2016 03:58
[Robbie Mackay, Ushahidi] Not sure. The CORS headers should be set by PHP for the api..
[Robbie Mackay, Ushahidi] the only time that doesn't work is when the api is failing with a 500 anyway
Sam
@ihatehandles
Apr 15 2016 04:05

Hmmm, didn't work out of the box in my case. Actually it was two things in my case. The CORS and eventually also was an issue in Apache config file which made rewrites to not work, which returned a 404 shown on @SergioMergio's screenshot. So maybe it's one of the two, it's not showing a 500 in the console there. Hope they worked it out.

Cheers

Ushbot
@ushbot
Apr 15 2016 04:06
[Robbie Mackay, Ushahidi] Right. if you're rewrites are wrong then you'll see CORS errors.. but they're just masking the actual bug
Sam
@ihatehandles
Apr 15 2016 04:10
I think that was the case yes. I saw you then showed them your working config, so they're probably good to go. I'm going to ask you for the conventions you use to organize your test files next week (for the platform api), so spare 5 for me :)
I'm off