Error: credentialsService.createCredential - Malformed UTF-8 data
Sometimes when we click on edit createCredential that time I get 500 internal server error with Error: credentialsService.createCredential - Malformed UTF-8 data i connected Mysql Data base locally its working I'm using GCP DB there I'm getting this error
Same i getting the error by using postgresql as the DB. Error : Status: 500 Error: credentialsService.createCredential - Malformed UTF-8 data
Same here, I am also using GCP with PostgreSQL, in the credentials I get this error:
Status: 500 Error: credentialsService.createCredential - Malformed UTF-8 data
And if this error occurs in the credential, in Chatflow I get this error:
Error: Error: Credentials could not be decrypted.
same here, but for openai.
I also have the same problem
Same issue here using version 2.0.1
Can't find a root cause. I created two identical credentials on the same day and i'm getting error with one (after a few hours of creation) and success with the other
Same problem here, creating an OpenAI credential with Supabase backend.
same problem, PostgreSQL on cloud run. Any solution?
bump - this is major - also breaking all our worfklows seemingly randomly.
As an update - I do have FLOWISE_SECRETKEY_OVERWRITE set on my container deployment. I also ran a local test doing the same, and had the same result.
The issue occurs when the container in question, which has ephemeral storage, is restarted, even with FLOWISE_SECRETKEY_OVERWRITE set.
It seems this env might not being respected correctly?
Same here this is the error log Flowise version 2.2.4
Error: Malformed UTF-8 data
at Object.stringify (/usr/local/lib/node_modules/flowise/node_modules/crypto-js/core.js:523:24)
at WordArray.init.toString (/usr/local/lib/node_modules/flowise/node_modules/crypto-js/core.js:278:38)
at decryptCredentialData (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/src/utils.js:532:41)
at async getCredentialData (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/src/utils.js:558:41)
at async OpenAIEmbedding_Embeddings.init (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/embeddings/OpenAIEmbedding/OpenAIEmbedding.js:83:32)
at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:442:36)
at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:250:36)
at async createAndStreamInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:33:29)
2025-01-16 01:08:08 [ERROR]: Error: Credentials could not be decrypted.
Error: Error: Credentials could not be decrypted.
at getCredentialData (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/src/utils.js:562:15)
at async OpenAIEmbedding_Embeddings.init (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/embeddings/OpenAIEmbedding/OpenAIEmbedding.js:83:32)
at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:442:36)
at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:250:36)
at async createAndStreamInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:33:29)
2025-01-16 01:08:08 [ERROR]: [server]: Error: Error: Error: Credentials could not be decrypted.
Error: Error: Error: Credentials could not be decrypted.
at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:491:19)
at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:250:36)
at async createAndStreamInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:33:29)
I found that I had to set SECRETKEY_PATH as well as FLOWISE_SECRETKEY_OVERWRITE to fix this, when deployed as a container. I set it as SECRETKEY_PATH=/root/.flowise as per the README here https://github.com/FlowiseAI/Flowise/tree/main/docker
I found that I had to set
SECRETKEY_PATHas well asFLOWISE_SECRETKEY_OVERWRITEto fix this, when deployed as a container. I set it asSECRETKEY_PATH=/root/.flowiseas per the README here https://github.com/FlowiseAI/Flowise/tree/main/docker
OMG a week of my work to the trash!
I found that I had to set
SECRETKEY_PATHas well asFLOWISE_SECRETKEY_OVERWRITEto fix this, when deployed as a container. I set it asSECRETKEY_PATH=/root/.flowiseas per the README here https://github.com/FlowiseAI/Flowise/tree/main/docker
But this is for local databases, not online mysql or postgres databases, right? Do those parameters have to be set as variables, or added in the docker file? Thanks!
Error: Malformed UTF-8 data Q: what the fix for this
Error: Datos UTF-8 mal formados P: cuál es la solución para esto
Tengo el mismo error
Right now, the only option is to delete/re-create credentials every time. I think this can be solved in the implementation provide an option to store var env in the DB instead, well this should be encrypted though.