Front end trying to reach API on localhost:8000

182 views
Skip to first unread message

juan....@reduc.edu.cu

unread,
Dec 8, 2015, 11:32:06 AM12/8/15
to tai...@googlegroups.com
Hi. After intsalling Taiga and trying to login with admin:123123 I get an authentication error message saying "According to our Oompa Loompas, your username/email or password are incorrect." Looking at the browser requests I see the app is trying to reach "http://localhost:8000/api/v1/auth" instead of "http://my.domain/api/v1/auth". What is wrong with my configs?

This is my ~/taiga-front-dist/js/conf.json:

{
"api": "http://my.domain/api/v1/",
"eventsUrl": ws://my.domain/events,
"debug": true,
"debugInfo": false,
"defaultLanguage": "en",
"themes": ["taiga"],
"defaultTheme": "taiga",
"publicRegisterEnabled": true,
"feedbackEnabled": true,
"privacyPolicyUrl": null,
"termsOfServiceUrl": null,
"maxUploadFileSize": null,
"contribPlugins": []
}

Would preciate some help with this. Thanks inadvance,

Juan Carlos

Alejandro Alonso

unread,
Dec 9, 2015, 3:04:54 AM12/9/15
to juan....@reduc.edu.cu, tai...@googlegroups.com
Hello Juan,

Are you using the last stable release?, if so your conf.json path should be  ~/taiga-front-dist/dist/js/conf.json

Regards,


--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send an email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/e3977afb38e6a72f9dedc04d13dcee1a%40webmail.reduc.edu.cu.
For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

juan....@reduc.edu.cu

unread,
Dec 9, 2015, 9:01:33 AM12/9/15
to Alejandro Alonso, tai...@googlegroups.com
Hello. Yes, sorry, it's at ~/taiga-front-dist/dist/js/conf.json. I found this at
~/taiga-front-dist/dist/js/app-loader.js:

...
window.taigaConfig = {
"api": "http://localhost:8000/api/v1",
"eventsUrl": null,
"debug": true,
"defaultLanguage": "en",
"themes": ["taiga", "material-design", "high-contrast"],


"defaultTheme": "taiga",
"publicRegisterEnabled": true,
"feedbackEnabled": true,
"privacyPolicyUrl": null,
"termsOfServiceUrl": null,
"maxUploadFileSize": null,
"contribPlugins": []

};
...

I changed "localhost:8000" to "my.domain" and it worked. It looks like it is using the default
settings instead of the provided with conf.json. But why?

9 de diciembre del 2015 3:06, "Alejandro Alonso" <alejandr...@kaleidos.net> escribió:

> Hello Juan,
>
> Are you using the last stable release?, if so your conf.json path should be
> ~/taiga-front-dist/dist/js/conf.json
>
> Regards,
>
> 2015-12-08 17:33 GMT+01:00 <juan....@reduc.edu.cu>:
>
>> Hi. After intsalling Taiga and trying to login with admin:123123 I get an authentication error
>> message saying "According to our Oompa Loompas, your username/email or password are incorrect."
>> Looking at the browser requests I see the app is trying to reach
>> "http://localhost:8000/api/v1/auth" instead of "http://my.domain/api/v1/auth". What is wrong with
>> my configs?
>>
>> This is my ~/taiga-front-dist/js/conf.json:
>>
>> {

>> "api": "http://my.domain/api/v1",


>> "eventsUrl": ws://my.domain/events,
>> "debug": true,
>> "debugInfo": false,
>> "defaultLanguage": "en",
>> "themes": ["taiga"],
>> "defaultTheme": "taiga",
>> "publicRegisterEnabled": true,
>> "feedbackEnabled": true,
>> "privacyPolicyUrl": null,
>> "termsOfServiceUrl": null,
>> "maxUploadFileSize": null,
>> "contribPlugins": []
>> }
>>
>> Would preciate some help with this. Thanks inadvance,
>>
>> Juan Carlos
>>
>> --
>> You received this message because you are subscribed to the Google Groups "taigaio" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to
>> taigaio+u...@googlegroups.com.
>> To post to this group, send an email to tai...@googlegroups.com.
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/taigaio/e3977afb38e6a72f9dedc04d13dcee1a%40webmail.reduc.edu.cu.
>> For more options, visit https://groups.google.com/d/optout.
>
> --

> Alejandro Alonso Fernández
> CIO & Co-founderale...@kaleidos.net | Tel: (+34) 627263808 | (+34) 913562995
> www.kaleidos.net/FC8EAC/

juan....@reduc.edu.cu

unread,
Dec 9, 2015, 9:43:33 AM12/9/15
to tai...@googlegroups.com
I found the problem root. I didn't put the "" in the eventsUrl value in conf.json, probably leading to a malformed JSON object. Sorry, my bad. I fixed this and restored app-loader.js. Everything is working now. Thanks.

> https://groups.google.com/d/msgid/taigaio/36d3f99fe02954574ba68740aa1203c4%40webmail.reduc.edu.cu.

Alejandro Alonso

unread,
Dec 10, 2015, 1:31:16 AM12/10/15
to juan....@reduc.edu.cu, tai...@googlegroups.com
Great! :)


For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

Reply all
Reply to author
Forward
0 new messages