can't get token_secret #5275

Closed
opened 2026-02-05 09:53:33 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @syks0121 on GitHub (May 5, 2025).

Describe the Bug

When I create the key I get an exception

access.log

172.21.0.1 - - [05/May/2025:11:08:51 +0000] "POST /api-tokens/1/create HTTP/1.1" 302 542 "http://192.168.31.106:8080/api-tokens/1/create?context=my-account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
172.21.0.1 - - [05/May/2025:11:08:52 +0000] "GET /%20http://192.168.31.106:8080/api-tokens/1/21 HTTP/1.1" 404 21384 "http://192.168.31.106:8080/api-tokens/1/create?context=my-account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"

Image

Image

Image

Steps to Reproduce

  1. Fill in the key name
  2. save
  3. An error occurred
  4. Only token_id can be obtained, token_secret cannot be obtained

Expected Behaviour

Create a key successfully

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v25.02.2

Originally created by @syks0121 on GitHub (May 5, 2025). ### Describe the Bug When I create the key I get an exception access.log ```log 172.21.0.1 - - [05/May/2025:11:08:51 +0000] "POST /api-tokens/1/create HTTP/1.1" 302 542 "http://192.168.31.106:8080/api-tokens/1/create?context=my-account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36" 172.21.0.1 - - [05/May/2025:11:08:52 +0000] "GET /%20http://192.168.31.106:8080/api-tokens/1/21 HTTP/1.1" 404 21384 "http://192.168.31.106:8080/api-tokens/1/create?context=my-account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36" ``` ![Image](https://github.com/user-attachments/assets/4a8245da-d5cc-480d-b4ea-b6f151de9822) ![Image](https://github.com/user-attachments/assets/ec37f36b-5fd5-4b68-b08f-f70d7cc44b9a) ![Image](https://github.com/user-attachments/assets/aa8c9f82-56b4-42d0-ae11-d1e033879eff) ### Steps to Reproduce 1. Fill in the key name 2. save 3. An error occurred 4. Only token_id can be obtained, token_secret cannot be obtained ### Expected Behaviour Create a key successfully ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v25.02.2
OVERLORD added the 🐕 Support label 2026-02-05 09:53:33 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 5, 2025):

Hi @syks0121,
Can you try following our debugging guidance to gain detail regarding the error:
https://www.bookstackapp.com/docs/admin/debugging/

@ssddanbrown commented on GitHub (May 5, 2025): Hi @syks0121, Can you try following our debugging guidance to gain detail regarding the error: https://www.bookstackapp.com/docs/admin/debugging/
Author
Owner

@ssddanbrown commented on GitHub (Sep 3, 2025):

Since there's been no further follow-up I'm going to close this off.

@ssddanbrown commented on GitHub (Sep 3, 2025): Since there's been no further follow-up I'm going to close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5275