-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websocket-service error #15
Comments
Hi Santonos, Based on the log it looks like an issue in your index file when you pass the prompt and it doesn't like your '<' character. Without knowing more and assuming that you have not changed the queryPrompt text my guess would be that the bad value comes from your ${context} variable and that something in your dashboard contains that '<' character that is being read into your prompt. |
Thank you for advicing. Based on the logs, it seems that the error is caused by loading in HTML format, but there are no changes from the original code and the cause is unknown. Do you know any solutions?
|
@satonos, where is this happening? When running locally or when deploying? That error is from the authentication and call to the Gemini SDK. Auth likely failed. If you are deploying via the terraform make sure to set the PROJECT & REGION TF Variables. If hitting locally or when deploying manually with
|
@LukaFontanilla |
Hi, I would like to help me about the error that was happend.
This error was happend on local development env when click "generate" of Looker dashboard.
SyntaxError: Unexpected token '<', ")
at parseJSONFromBytes (node:internal/deps/undici/undici:5584:19)
at successSteps (node:internal/deps/undici/undici:5555:27)
at fullyReadBody (node:internal/deps/undici/undici:1665:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async specConsumeBody (node:internal/deps/undici/undici:5564:7)
at async throwErrorIfNotOK (C:\Looker-extension-framework\dashboard-summarization\websocket-service\src\node_modules@google-cloud\vertexai\build\src\functions\post_fetch_processing.js:30:27)
at async generateContentStream (C:\Looker-extension-framework\dashboard-summarization\websocket-service\src\node_modules@google-cloud\vertexai\build\src\functions\generate_content.js:90:5)
at async Socket. (C:\Looker-extension-framework\dashboard-summarization\websocket-service\src\index.js:178:31)
The text was updated successfully, but these errors were encountered: