Open Beta API: Intermittent error 'Error in API gateway: Expecting value: line 1 column 1 (char 0)'
Here is the code used to submit the request to the mor api:
https://github.com/nima1981/dissentbot/blob/master/api/index.js
In my local environment I use the following parameters to connect with the morpheus API:
API_URL_MODELS="https://api.mor.org/api/v1/models"
MODEL_ID="venice-uncensored" API_URL_CHAT_COMPLETION="https://api.mor.org/api/v1/chat/completions"
Here is the error occasionally returned by the morpheus API
server-1 | API ERROR RESPONSE: { server-1 | error: { server-1 | message: 'Error in API gateway: Expecting value: line 1 column 1 (char 0)', server-1 | type: 'gateway_error', server-1 | session_id: '0x8eefd1bab34aa5c6442d37243981b0fa10d1ce204cac4589e28f439243c99707' server-1 | } server-1 | }
You can see the same app working online using the venice api where this error never occurs: https://dissentbot.com
In that live environment I use the following parameters to connect with the Venice API:
API_URL_MODELS="https://api.venice.ai/api/v1/models"
MODEL_ID="venice-uncensored" API_URL_CHAT_COMPLETION="https://api.venice.ai/api/v1/chat/completions"
Log in to comment and vote
Comments3
nima1981
Aug 28, 2025
I just gave it another shot after a while. Here are my latest findings:
When using venice-uncensored and venice-uncensored-web the response fails to incorporate instructions on how to handle the provided context, it works without any issues when I use that same model at api.venice.ai (the instructions specify the inclusion of links provided in the context in markup formatting)
when I asked why no links were provided it became non responsive, the logs showed several 500 errors returned from the mor api
after prodding a bit more I received this strange reply: "Apologies for any confusion, but my previous responses did not include links because I am limited to the information provided in the context prompts. I cannot generate links or provide evidence for claims about a specific topic, such as COVID-19 vaccine deaths. To obtain such evidence, you would need to search for relevant articles, documents, and data from reputable sources that provide the information you are seeking. If you have any specific questions or need further assistance with analysis or information retrieval, please let me know." (links were provided in the context)
Switching back to the venice api for now. Hoping for good news and updates here at some point.
nima1981
Jul 13, 2025
In another call using “llama-3.1-405b“ I just got this error:
server-1 | API ERROR RESPONSE: { server-1 | error: { server-1 | message: 'Error in API gateway: Expecting value: line 1 column 1 (char 0)', server-1 | type: 'gateway_error', server-1 | session_id: '0x166e0e7bc689d0316d03d2446319096e5abd15b3b581a84163807d4ec4fc1b26' server-1 | } server-1 | }
nima1981
Jul 13, 2025
In a different call using “venice-uncensored-web“ I get the following error:
server-1 | API ERROR RESPONSE: { server-1 | error: { server-1 | message: 'Error in API gateway: Extra data: line 1 column 370 (char 369)', server-1 | type: 'gateway_error', server-1 | session_id: '0x21641193f65c6231b7d46c779dcb85426d6a0bb3da922b39d5ae598ec35c9548' server-1 | } server-1 | }