Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Change account parameters does not work #452

Closed
fjacon opened this issue Jun 23, 2016 · 7 comments
Closed

Change account parameters does not work #452

fjacon opened this issue Jun 23, 2016 · 7 comments
Assignees
Milestone

Comments

@fjacon
Copy link

fjacon commented Jun 23, 2016

http://c2corgv6.demo-camptocamp.com/account

except for password, the save button is not active.

@asaunier
Copy link
Member

The API says there's an

Error with Discourse

@asaunier
Copy link
Member

There are probably sync/connection issues between the UI and the forum app.
For instance when logging out in the UI, the user is not logged out in the forum.

In addition when checking discourse is available to the API client, see https://github.com/c2corg/v6_api#production-checks, I get the following error:

alex@c2corgv6-demo:/var/www/vhosts/c2corgv6-api/private/v6_api$ scripts/check_discourse_connection.sh 377
Discourse url: http://c2corgv6-discourse.demo-camptocamp.com
API key: 4647c0d98e8beb793da099ff103b9793d8d4f94fff7cdd52d58391c6fa025845
v6 user id: 377

Test URL: http://c2corgv6-discourse.demo-camptocamp.com//users/by-external/377.json?api_key=4647c0d98e8beb793da099ff103b9793d8d4f94fff7cdd52d58391c6fa025845&api_username=system
* Hostname was NOT found in DNS cache
*   Trying 128.179.66.11...
* Connected to c2corgv6-discourse.demo-camptocamp.com (128.179.66.11) port 80 (#0)
> GET //users/by-external/377.json?api_key=4647c0d98e8beb793da099ff103b9793d8d4f94fff7cdd52d58391c6fa025845&api_username=system HTTP/1.1
> User-Agent: curl/7.38.0
> Host: c2corgv6-discourse.demo-camptocamp.com
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
* Server nginx/1.2.1 is not blacklisted
< Server: nginx/1.2.1
< Date: Thu, 23 Jun 2016 13:33:35 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< X-Request-Id: ffe8e6ea-e2d7-4eb2-bf32-1ecf2b44cc63
< X-Runtime: 1.510267
< Via: 1.0 c2corgv6-discourse
< 
* Connection #0 to host c2corgv6-discourse.demo-camptocamp.com left intact

@gberaudo
Copy link
Contributor

@asaunier, the api key from your trace is different from the one configured in Discourse.

@gberaudo
Copy link
Contributor

@asaunier
Copy link
Member

asaunier commented Jun 23, 2016

I have no admin rights. Could you do the change?
I have updated the demo at noon. Would it explain that the API key has changed?

This key is the one available in the default config: https://github.com/c2corg/v6_api/blob/master/config/default#L63
which is inherited by the API's config/main https://github.com/c2corg/v6_api/blob/master/config/main

Should I have made some other change when updating the demo?

@gberaudo
Copy link
Contributor

No, that strange.

I gave you admin rights and also updated the Discourse key.

@asaunier
Copy link
Member

Thanks!

Changing the account data now works as expected, except the email, see #453

@fjacon I let you close the issue if you think it's OK.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants