Skip to main content

Why do I get a "406 Not Acceptable" error with my TradingView alert?

This error means TradingView sent an invalid alert body to Cryptohopper. Two common causes: the message is in the Alert name field instead of Message, or it contains a capital letter that should be lowercase.

Written by Bryan

This error means Cryptohopper received a webhook from TradingView, but the message body was invalid. TradingView successfully sent the alert, but the content wasn't recognized as a valid Cryptohopper instruction. There are two common causes.

Cause 1 — The alert is in the wrong field

The alert content was placed in the Alert name field instead of the Message field.

Solution

  1. Go to TradingView and open the alert you want to edit, or create a new one.

  2. In Cryptohopper, generate the correct alert message for your bot.

  3. In the TradingView alert dialog, locate the Message field (not the Alert name).

  4. Paste the generated message into the Message field.

  5. Click Save to update the alert.

Screenshot showing the Webhook delivery failed — 406 Not Acceptable error notification in TradingView

Cause 2 — A capital letter in the alert message

The alert message contains a capital letter where it shouldn't. In the example below, the word "Action" is written with a capital letter — it should be "action". Only the name of the coin can be written in capital letters.

Example of a TradingView alert message in Cryptohopper showing hopper_id (masked), coin:BTC, action:sell and market_order:1, with

Solution

Always copy and paste the alert message you generate in Cryptohopper, and only make the adjustments that are allowed. Every parameter (such as action and market_order) must be lowercase — only the coin (e.g. BTC) may use capital letters.

Verify the fix

After saving, trigger the alert from TradingView. If set up correctly, the "406 Not Acceptable" error will no longer appear in your Cryptohopper notifications.

Did this answer your question?