Title: Error 500 when adding token
Last modified: September 22, 2023

---

# Error 500 when adding token

 *  Resolved [duttoluca](https://wordpress.org/support/users/duttoluca/)
 * (@duttoluca)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/)
 * Hello, I’m having issues in saving the bot token, I get “invalid json” and error
   500 in js console:
 *     ```wp-block-code
       POST https://website.xxxxxxxx.xxx/wp-json/wptelegram-bot/v1/getMe/?_locale=user 500
       ```
   
 * I’d like to enable the logs and debug the issue, but it seems like you can’t 
   save the settings without a token…
 * 
   Any help? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * (@irshadahmad21)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/#post-17071084)
 * Hello,
 * That definitely needs some debugging. Can you share those view log link from 
   Advanced Settings with our Support on Telegram – [@WPTelegramSupport](https://t.me/WPTelegramSupport)?
 *  Thread Starter [duttoluca](https://wordpress.org/support/users/duttoluca/)
 * (@duttoluca)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/#post-17071093)
 * Logs are empty, ’cause I can’t save the settings if there is no valid token…
   
   I click on Save in Advanced Settings and it doesn’t save ’cause there is no token(
   and another error 500 in console)
 *  Thread Starter [duttoluca](https://wordpress.org/support/users/duttoluca/)
 * (@duttoluca)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/#post-17071169)
 * I solved it by myself, updating All in One SEO plugin solved the issue, there
   was a bug with the interaction with the internal REST API.
 *  Plugin Author [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * (@irshadahmad21)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/#post-17071176)
 * Aha. I’m glad the issue is resolved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error 500 when adding token’ is closed to new replies.

 * ![](https://ps.w.org/wptelegram/assets/icon-256x256.png?rev=2500018)
 * [WP Telegram (Auto Post and Notifications)](https://wordpress.org/plugins/wptelegram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptelegram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptelegram/)
 * [Active Topics](https://wordpress.org/support/plugin/wptelegram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptelegram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptelegram/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-adding-token/#post-17071176)
 * Status: resolved