Troubleshooting the Signal8 API and MCP server: 401s, OAuth loops, 429s and stream disconnects Signal8 published a troubleshooting guide for its API and MCP server, cataloguing the causes and fixes behind 401 Unauthorized errors, OAuth login loops, 429 rate limits, and stream disconnects. The company notes that its MCP server answers initialize, tools/list, and ping without credentials, so only tool calls require a Bearer key, and that expired OAuth tokens, revoked keys, and Free-plan accounts each produce distinct error codes. It also provides curl checks to verify a key against both the REST API and the MCP endpoint. Find the error you see below. Each section starts with the exact text the API, MCP server or stream sends, then lists every cause we know of and the fix for each. Every error body is JSON with a code you can search for here. Jump to: MCP 401 Unauthorized, MCP OAuth login loop, API 429 rate limit, Stream disconnects and reconnects. A 401 from https://mcp.signal8.ai/mcp means the request reached the server without credentials it accepts: no Authorization: Bearer header, an API key that is wrong or revoked, or an OAuth token that expired or was disconnected. The fix is to send Authorization: Bearer sk live ... with a current Pro key, or to reconnect the client so it signs in again. A tool call with no credentials, or a header we cannot read, gets this response: Bearer gets 401 Invalid Authorization header format. Use: Authorization: Bearer sk live xxx . isError set and text such as {"error":"Invalid, revoked, or expired API key","code":"INVALID API KEY","statusCode":401} . MCP OAuth access token invalid or expired invalid token or MCP connection revoked or not found token revoked . The MCP server's 401 HTTP/1.1 401 Unauthorized WWW-Authenticate: Bearer resource metadata="https://mcp.signal8.ai/.well-known/oauth-protected-resource/mcp" {"jsonrpc":"2.0","error":{"code":-32001,"message":"Authentication required"},"id":null} The server answers initialize , tools/list , prompts/list , resources/list and ping without credentials, so a client can show every Signal8 tool while holding no key at all. Only a tool call needs one. A client that saved the connection without finishing sign-in, or with an empty token field, looks connected and then fails on its first call. Reconnect it and complete the sign-in, or paste the key into its token field. | Cause | Fix | |---|---| | No Authorization header a config with the URL only | Add the header Authorization: Bearer sk live ... , or remove the connection and add it again in a client that signs in through OAuth Claude, ChatGPT . | | The key has no Bearer prefix, or extra quotes or spaces | The header value must be exactly Bearer followed by the key. In n8n's Bearer Auth credential, paste the key alone: n8n adds the prefix. | | The key was revoked, rotated or mistyped | Create a new key on the API keys page https://signal8.ai/developer/api-keys and update the client. Pro accounts can hold 3 keys. | | The account is on the Free plan | A key on a free account gets 403 PRO REQUIRED : "The Signal8 API and MCP server are part of Signal8 Pro, and this account is on the Free plan." Upgrade, and the same key works within a few minutes. A free account signed in through OAuth gets 10 free calls a day on a set of read tools. | | The OAuth access token expired after 60 minutes and the client did not refresh it | Clients refresh it automatically for 30 days. If yours does not, disconnect Signal8 in the client and connect again. | | The connection was removed in your Signal8 account settings | Connect again from the client. A removed connection cannot be revived. | | The stdio server started without a key | The local server stops with SIGNAL8 API KEY environment variable is required. Set SIGNAL8 API KEY in the client's MCP config env block. | If both requests below succeed, the key is fine and the problem is in how the client sends it. Check the key on the REST API and the MCP server 1. Does the key work on the REST API? Expect 200 and a quote. curl -s -o /dev/null -w "%{http code}\n" "https://api.signal8.ai/api/v1/public/companies/AAPL/quote" \ -H "X-Api-Key: sk live YOUR KEY" 2. Does the MCP server accept it? Expect a JSON-RPC result, not error -32001. curl -s "https://mcp.signal8.ai/mcp" \ -H "Authorization: Bearer sk live YOUR KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get quote","arguments":{"ticker":"AAPL"}}}' Why does the Signal8 MCP server say "Authentication required"? The tool call reached the server with no Authorization header. Discovery calls such as tools/list work without one, but every tool call needs Authorization: Bearer with a Pro API key or a token from signing in through OAuth. Why can my client list Signal8 tools but not call them? Listing tools does not need credentials, calling them does. The client saved the connection without a token. Reconnect and finish the sign-in, or add your API key as a Bearer token. Do I need to reconnect after upgrading to Pro? No. An existing connection or key starts working within a few minutes of upgrading. Full page: MCP 401 Unauthorized https://signal8.ai/developer/troubleshooting/mcp-401-unauthorized An OAuth loop almost always means the connection request expired before you approved it, or the browser that opened the consent page was not signed in to Signal8. Each request is good for 15 minutes. Sign in to signal8.ai in the same browser first, then start the connection again from your MCP client and approve it straight away. https://api.signal8.ai/authorize , which sends the browser to signal8.ai/connect with a one-time ticket. The ticket expires after 15 minutes. A loop is a break at one of these steps. The message you see tells you which. | What you see | Cause and fix | |---|---| | "Invalid connection link" | The /connect page opened without its ticket a copied or bookmarked link . Start the connection again from the client. | | "Sign in to connect" | This browser is not signed in to Signal8. Sign in on that page; you return to the consent screen with the same ticket. | | "Couldn't load this request. The connection request may have expired. Please retry from your MCP client." | The ticket is older than 15 minutes, or your Signal8 session ran out and could not be refreshed. Sign in at signal8.ai, then start the connection again from the client. | | "Consent expired. Please restart the connection from your MCP client." | Allow was pressed more than 15 minutes after the request started. Start again and approve promptly. | | "Sign in required. Please sign in to Signal8 and retry the connection." | The session cookie was missing when Allow was pressed: you signed out in another tab, or the browser blocks cookies for signal8.ai. Allow cookies for signal8.ai, sign in and retry. | | "Invalid client. Unknown client or redirect URI." | The client registered itself with one return address and then used another, or its registration was from an old session. Remove the Signal8 connection from the client and add it again so it registers afresh. | | The client reports access denied | You pressed Cancel , or with plan upgrade required the account cannot connect to this server. Start again and press Allow . | | The client reports invalid grant | The code was used twice or is older than 5 minutes "Authorization code invalid or expired", "Authorization code expired" , the return address changed "redirect uri mismatch" , or the refresh token was revoked or is older than 30 days "Refresh token invalid or revoked", "Refresh token expired" . Reconnect from the client. | Authorization: Bearer sk live ... to https://mcp.signal8.ai/mcp . Keys come with Signal8 Pro. How long do I have to approve a Signal8 MCP connection? 15 minutes from the moment the client opens the sign-in page. After that the page says the request may have expired, and you start again from the client. Why do I have to sign in to Signal8 again every time I connect? The client opened the sign-in page in a browser or profile that is not signed in to Signal8, or the browser is blocking cookies for signal8.ai. Sign in in that browser once, then retry. How long does a Signal8 MCP sign-in last? The access token lasts 60 minutes and the client refreshes it automatically for 30 days. After that, or after you remove the connection, the client asks you to sign in again. Full page: MCP OAuth login loop https://signal8.ai/developer/troubleshooting/mcp-oauth-login-loop A 429 from https://api.signal8.ai/api/v1/public means the key went over one of two Pro limits: 120 requests in any 60 seconds RATE LIMIT EXCEEDED , wait the seconds in Retry-After , or 10,000 requests in a UTC day DAILY LIMIT EXCEEDED , resets at midnight UTC . Read the code in the body to tell them apart, then slow down or wait. The window slides: it counts the requests the key made in the last 60 seconds, not since the start of the clock minute. The limit is per key, so two keys on one account each get 120. Per-minute 429 HTTP/1.1 429 Too Many Requests Retry-After: 12 X-RateLimit-Limit: 120 X-RateLimit-Remaining: 0 X-RateLimit-Reset: 1764340260 { "error": { "code": "RATE LIMIT EXCEEDED", "message": "Rate limit exceeded. Please retry after the period indicated by the Retry-After header. Need higher limits? Email george@signal8.ai about a business plan.", "details": { "contact": "george@signal8.ai" } } } Retry-After is in seconds. X-RateLimit-Reset is a Unix time in seconds. The daily count resets at midnight UTC. Responses that served you nothing 400, 404 and 5xx are handed back: the response carries X-Quota-Refunded: 1 and does not count toward the 10,000, up to a capped number of refunds per key per day. 401 and 403 responses are not refunded, and every request still counts toward the per-minute window. Daily 429 HTTP/1.1 429 Too Many Requests X-DailyLimit-Limit: 10000 X-DailyLimit-Remaining: 0 { "error": { "code": "DAILY LIMIT EXCEEDED", "message": "Daily request limit of 10,000 exceeded. Resets at midnight UTC. Need higher limits? Email george@signal8.ai about a business plan.", "details": { "limit": 10000, "resets": "midnight UTC", "contact": "george@signal8.ai" } } } | Header | Meaning | |---|---| | X-RateLimit-Limit | Requests allowed per 60 seconds 120 on Pro . | | X-RateLimit-Remaining | Requests left in the current 60-second window. | | X-RateLimit-Reset | Unix time seconds when the window has room again. | | X-DailyLimit-Limit | Requests allowed per UTC day 10,000 on Pro . | | X-DailyLimit-Remaining | Requests left today. | | X-DailyLimit-Reset | When the daily count resets midnight UTC . | | Retry-After | On a 429 only: seconds to wait before the next request. | Retry-After on RATE LIMIT EXCEEDED instead of retrying straight away. Retrying in a tight loop keeps the window full. DAILY LIMIT EXCEEDED : nothing succeeds until midnight UTC. X-RateLimit-Remaining : at 120 a minute, one request every 0.5 seconds never trips the limit. limit for example up to 500 insider transactions, 200 stream events so one call replaces many. /stream/events with a cursor one call returns everything new or hold the WebSocket open, instead of polling each ticker. JavaScript: retry on the per-minute limit // Node 18+ / browsers: retry on the per-minute limit, stop on the daily one. async function signal8Get url, key, tries = 5 { for let i = 0; i < tries; i++ { const res = await fetch url, { headers: { "X-Api-Key": key } } ; if res.status == 429 return res; const body = await res.json ; if body.error.code === "DAILY LIMIT EXCEEDED" throw new Error body.error.message ; const wait = Number res.headers.get "retry-after" ?? 5 ; await new Promise r = setTimeout r, wait 1000 ; } throw new Error "still rate limited" ; } A Python version is in Signal8 API in Python https://signal8.ai/integrations/python . | Code | Meaning | |---|---| | DILUTION DAILY TICKER LIMIT | Dilution snapshots are limited to 25 different tickers a day per account. Resets at midnight US Eastern. | What is the Signal8 API rate limit? Signal8 Pro allows 120 requests a minute and 10,000 requests a day per API key, with up to 3 keys per account. When does the Signal8 daily request limit reset? At midnight UTC. The per-minute limit is a sliding 60-second window, so it frees up continuously. Do failed requests count against my Signal8 limit? Requests that return 400, 404 or a 5xx are refunded from the daily count marked X-Quota-Refunded: 1 , up to a daily cap. They still count toward the per-minute window. 401 and 403 responses are not refunded. Full page: API 429 rate limit https://signal8.ai/developer/troubleshooting/api-429-rate-limit A Signal8 stream closes for one of a few reasons, and the close code says which: 4001 and 4003 are key or plan problems you must fix before retrying, 4008 means the client read too slowly or sent too much, 4029 means the key already has 2 connections, and 1006 or 1001 are network drops or a server restart. For every retryable close, reconnect with backoff and send your last cursor as since : you get back every event you missed from the last 24 hours. | Code | Why it closed | Retry? | |---|---|---| | 4001 | Authentication: no auth message within 10 s AUTH TIMEOUT , another message before auth AUTH REQUIRED , or an invalid key AUTH FAILED . | No. Fix the key or the client first. | | 4003 | Plan: the key is valid but its account does not include streams PRO REQUIRED . | No. Upgrade to Signal8 Pro first. | | 4008 | Rate: more than 30 client messages in 10 s RATE LIMITED , or a client too slow to read, with over 4 MB waiting to be sent SLOW CONSUMER . | Yes, with backoff and your last cursor. Read faster or narrow your filters. | | 4029 | Too many connections: the key already has 2 open TOO MANY CONNECTIONS . | After closing another connection. | | 4400 | API key in the URL KEY IN URL : the handshake completes, one error frame is sent and the socket closes. | No. Send the key in the Authorization header, or in the auth message from a browser. | | 4503 | Streams are switched off on our side STREAMS DISABLED . | Later, with backoff and your last cursor. | | 1011 | Server-side failure. | Yes, with backoff and your last cursor. | | 1001 | Server restart SERVER RESTART . | Yes, reconnect with your last cursor. | 1006 is not sent by us: it is what your library reports when the connection dropped with no close frame a network change, a proxy or load balancer idle timeout, a laptop going to sleep . Treat it like 1001 : reconnect with your cursor. The server sends {"type":"heartbeat"} every 15 seconds even when nothing is filed. If nothing at all arrives for 45 seconds three missed heartbeats , the link is dead even if your socket still says open: close it and reconnect. Both examples below do this with a watchdog. A corporate proxy or load balancer with a short idle timeout can also cut a quiet connection. The heartbeat keeps the line busy, so if you still see drops at a fixed interval, check that interval against the proxy's timeout. | Symptom | Fix | |---|---| | 4001 AUTH TIMEOUT | Send the key in the Authorization header at the handshake, or send the auth message within 10 seconds of connecting. | | 4001 AUTH FAILED | The key is wrong or revoked. Get a current one from the API keys page https://signal8.ai/developer/api-keys . Do not retry in a loop. | | 4003 PRO REQUIRED | The key's account does not include streams. Upgrade to Signal8 Pro; do not retry until then. | | 4400 KEY IN URL | Remove the key from the URL query string. Use the header, or the auth message from a browser. | | 4029 TOO MANY CONNECTIONS | A key can hold 2 connections. An old process a crashed worker, a second deploy, a dev laptop is still connected. Close it, or use a second key, then reconnect. Put many filters on one connection: it takes 10 subscriptions. | | 4008 SLOW CONSUMER | More than 4 MB was waiting for your client to read. Hand events to a queue and return from the message handler at once, and narrow your filters. | | 4008 RATE LIMITED | The client sent more than 30 messages in 10 seconds, usually a subscribe or ping loop. Subscribe once after connecting. | | 4503 STREAMS DISABLED or 1011 | A problem on our side. Reconnect with backoff and your cursor. | | CURSOR EXPIRED error frame | Your cursor is older than 24 hours. Not fatal: you get the last 24 hours, and anything older has to come from the REST API. | Save cursor from each event after you have handled it. On reconnect, send it as since in the subscribe: the server replays everything after it, sends replay complete , then carries on live. One cursor covers every channel in the subscription. Back off exponentially 1, 2, 4 seconds up to 30, plus some jitter so a fleet of clients does not reconnect in the same second. Node.js: reconnect with cursor and watchdog python // npm install ws import WebSocket from "ws"; const URL = "wss://api.signal8.ai/api/v1/stream"; const subscription = { type: "subscribe", id: "watch", channels: "filings", "filings.ai" , filters: { tickers: "XMPL" }, }; let lastCursor = null; // Persist it file, database in production. let attempt = 0; function connect { const ws = new WebSocket URL, { headers: { Authorization: Bearer ${process.env.SIGNAL8 API KEY} }, } ; // A heartbeat arrives every 15 s. Three missed: treat the link as dead. let watchdog; const resetWatchdog = = { clearTimeout watchdog ; watchdog = setTimeout = ws.terminate , 45 000 ; }; ws.on "open", = { attempt = 0; resetWatchdog ; // One cursor covers every channel, so one since resumes the whole subscription. ws.send JSON.stringify lastCursor ? { ...subscription, since: lastCursor } : subscription ; } ; ws.on "message", raw = { resetWatchdog ; const msg = JSON.parse raw.toString ; if msg.type === "replay complete" console.log "caught up, live from here" ; if msg.type === "error" console.warn msg.code, msg.message ; // CURSOR EXPIRED is not fatal if msg.type == "event" return; handle msg ; lastCursor = msg.cursor; // save only after the event is handled } ; ws.on "close", code = { clearTimeout watchdog ; if code === 4001 || code === 4003 || code === 4400 return; // bad key, no Pro plan or key in the URL: retrying will not help const delay = Math.min 30 000, 1 000 2 attempt++ + Math.random 1 000; setTimeout connect, delay ; } ; ws.on "error", = {} ; // "close" always follows and schedules the retry } function handle msg { console.log msg.channel, msg.id, msg.data ; } connect ; Python: reconnect with cursor and watchdog python pip install websockets import asyncio, json, os, random import websockets URL = "wss://api.signal8.ai/api/v1/stream" HEADERS = {"Authorization": f"Bearer {os.environ 'SIGNAL8 API KEY' }"} SUBSCRIPTION = { "type": "subscribe", "id": "watch", "channels": "filings", "filings.ai" , "filters": {"tickers": "XMPL" }, } last cursor = None Persist it in production. def handle msg : print msg "channel" , msg "id" , msg "data" async def run once : global last cursor async with websockets.connect URL, additional headers=HEADERS as ws: sub = dict SUBSCRIPTION, since=last cursor if last cursor else SUBSCRIPTION await ws.send json.dumps sub while True: Heartbeat every 15 s; 45 s of silence means the link is dead. raw = await asyncio.wait for ws.recv , timeout=45 msg = json.loads raw if msg "type" == "event": handle msg last cursor = msg "cursor" save only after the event is handled async def main : attempt = 0 while True: try: await run once except websockets.ConnectionClosed as exc: if exc.rcvd and exc.rcvd.code in 4001, 4003, 4400 : raise bad key, no Pro plan or key in the URL: retrying will not help except OSError, asyncio.TimeoutError : pass await asyncio.sleep min 30, 2 attempt + random.random attempt += 1 asyncio.run main Events can arrive twice around a reconnect. Use the event id to drop duplicates. For more, see the protocol reference https://signal8.ai/developer/streams/protocol and the Python streaming tutorial https://signal8.ai/developer/streams/stream-sec-filings-python . Why does my Signal8 WebSocket close with 1006? Code 1006 means the connection dropped without a close frame: a network change, a proxy timeout or a sleeping machine. Reconnect with backoff and send your last cursor as since to replay what you missed. Which stream close codes should I not retry? 4001 authentication , 4003 no Pro plan and 4400 API key in the URL . Retrying will not help until the key or plan is fixed. Every other close can be retried with backoff. How do I avoid missing filings when the stream reconnects? Save the cursor of each event after handling it and send it as since when you subscribe again. The server replays every event after that cursor from the last 24 hours. How many stream connections can one key open? 2 at a time. A third gets close code 4029. Each connection can hold 10 subscriptions. Full page: Stream disconnects and reconnects https://signal8.ai/developer/troubleshooting/stream-disconnects Where do Signal8 API error messages come from? Every REST error is a JSON body of the form {"error":{"code":"...","message":"..."}} with an HTTP status. The MCP server returns JSON-RPC errors, and the stream sends an error frame before it closes with a 4000-range close code. Who do I contact if none of these fixes work? Email george@signal8.ai mailto:george@signal8.ai with the error code, the time it happened in UTC and the endpoint or MCP client you used. Never send your API key. The original guide, kept up to date, is on Signal8: signal8.ai/developer/troubleshooting https://signal8.ai/developer/troubleshooting .