nodebb-plugin-write-api icon indicating copy to clipboard operation
nodebb-plugin-write-api copied to clipboard

Token generation api responses time out

Open CoderYellow opened this issue 5 years ago • 4 comments
trafficstars

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.

CoderYellow avatar Feb 23 '20 10:02 CoderYellow

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

julianlam avatar Feb 24 '20 15:02 julianlam

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 avatar Feb 24 '20 15:02 CoderYellow

Are there any built in read api documentation?

CoderYellow avatar Feb 24 '20 16:02 CoderYellow

@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?

julianlam avatar Feb 25 '20 18:02 julianlam