Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token generation api responses time out #118

Open
CoderYellow opened this issue Feb 23, 2020 · 4 comments
Open

Token generation api responses time out #118

CoderYellow opened this issue Feb 23, 2020 · 4 comments

Comments

@CoderYellow
Copy link

nodebb-plugin-write-api version 5.2.3
nodebb-plugin-write-api-brfenergi version 5.4.0
nodebb version 1.11.2
test :

POST http://localhost:4567/api/v2/users/1/tokens
Content-Type: application/json

{
  "password": "my password"
}

error:
org.apache.http.NoHttpResponseException: localhost:4567 failed to respond
Server side didn't show any error logs.

@julianlam
Copy link
Member

Can you try without the brfenergi variant of the plugin? I don't think you can run both plugins at the same time.

@CoderYellow
Copy link
Author

Can you try without the brfenergi variant of the plugin? I don't think you can run both plugins at the same time.

Thanks, it works. By the way,is there anyway to generate token by sending user name or email, I am developing an app for NodeBB. Login by uid is not a good idea.

@CoderYellow
Copy link
Author

Are there any built in read api documentation?

@julianlam
Copy link
Member

@CoderYellow

Are there any built in read api documentation?

At present, no, although we will be fleshing out some read API documentation in the coming months.

The token generation route is mostly for utility purposes, can you share with me how you are using the Write API with user generated tokens?

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

No branches or pull requests

2 participants