Hi i am geting and error 502 (bad gateway) when i create file from my node.js server (from client it works)
I am using cloud.
Cloud someone help me please?
here is code for creating:
await storage.createFile(".........", "...........", InputFile.fromBuffer(myBufferString, "constant file name"))
Can i have one constant name for all files? I dont really want to name my files.
Summary
User is encountering a 502 (bad gateway) error when attempting to create a file from their Node.js server. The error does not occur when creating files from the client. They are using a cloud storage service.
One potential solution is to check if the mime type parameter or the file name on the input file are missing, as this could be causing the error.
User also asks if it is possible to create files with a consistent name, as they do not want to name the files individually.
The user later realizes that the mistake causing the error is not related to file creation, and apologizes for the interruption.
TL;DR: User
Drake
Jun 22, 2023, 18:28
where is your server code running and what's the endpoint set to?
otik
Rank 2: Process
Jun 22, 2023, 18:32
my server code is in node.js, is running in my node.js server