These are chat archives for ushahidi/Community

26th
Jun 2018
zaxosd
@zaxosd
Jun 26 2018 09:16
Hello, can I have some help on Ushahidi V3 API? thank you
Ushbot
@ushbot
Jun 26 2018 09:20
[live:zaxosdimi_2] Hello, my name is Dimitrakoudis Zacharias.
[live:zaxosdimi_2] Can I have some help on Ushahidi V3 API? Thank you
Ushbot
@ushbot
Jun 26 2018 09:27
[Angela Oduor Lungati, Ushahidi] Hello Dimirakoudis
[Angela Oduor Lungati, Ushahidi] how can we be of help?
[live:zaxosdimi_2] Thank you very much! I have tried with both: apache & nginx.
I've installed Ushahidi v3 API & client. But when trying to login, there is error - Login failed, check your email and password (after fresh install).
There is also errors on browser console like : Failed to load resource: the server responded with a status of 401 (Unauthorized)
possibly unhandled rejection: {"data":{"errors":[{"status":401,"title":"The request is missing an access token in either the Authorization header or the access_token request parameter."
Ushbot
@ushbot
Jun 26 2018 09:32
[live:34d584e3a631651a]
I think you have to use admin admin for the first connection
[live:zaxosdimi_2] I did it but still the same problem.

[live:zaxosdimi_2] [26/6/2018 12:30:01 μ.μ.] Zaxos Dimi: Failed to load resource: the server responded with a status of 401 (Unauthorized)

<<< I also have errors on logs, in broeser console:

Ushbot
@ushbot
Jun 26 2018 09:52
[live:zaxosdimi_2] should I pair somehow client with server? something like api key/secret on the client?
all I have now is the backend url in .env file.
Ushbot
@ushbot
Jun 26 2018 09:58

[live:34d584e3a631651a] [10:52:55 AM] Zaxos Dimi: should I pair somehow client with server? something like api key/secret on the client?
all I have now is the backend url in .env file.

<<< I am really sorry Zaxos. Because I think that we are not deploying the same version of ushahidi. So I can't hel you now.

[live:zaxosdimi_2] which version do you use?
[live:34d584e3a631651a] This is a link https://github.com/ushahidi/platform-release/releases. And I use this tutorial https://www.ushahidi.com/support/install-ushahidi.
Ushbot
@ushbot
Jun 26 2018 10:03
[live:34d584e3a631651a] it is a last version (3.10)
[live:zaxosdimi_2] I will install the same version as you have too and will try again.
[live:34d584e3a631651a] What is your deployment environment
Ushbot
@ushbot
Jun 26 2018 10:10
[live:zaxosdimi_2] Ubuntu 16.04.4 LTS / nginx 1.10.3 / PHP 7.0.30 / npm 4.2.0 / nodejs v7.10.1
[live:34d584e3a631651a] What part of ushahidi tutorial do you follow??
Ushbot
@ushbot
Jun 26 2018 10:38
[live:34d584e3a631651a] I ask because I had a lot difficults when I followed a Installing for development. But it is very easy to follow a deployment on apache or nginx server of this tutorial https://www.ushahidi.com/support/install-ushahidi
Ushbot
@ushbot
Jun 26 2018 11:27
[live:zaxosdimi_2] just tried with the tutorial you suggested , on latest release. the result is the same. backend works, but client cannot get authorisation. the same errors.
[live:zaxosdimi_2] Is it possible to have problems on apache or nginx config about authorise the api?
Ushbot
@ushbot
Jun 26 2018 11:41

[Angela Oduor Lungati, Ushahidi] Hey All - I'm checking in with our developers to see who can best provide assistance on this topic, our team is spread out across multiple timezones, which means you may not get immediate responses, but someone should get back to you within the next couple of hours.

ps: this is helpful feedback!

[live:zaxosdimi_2] Thank you very much for your help!