elnurOriginal post
Rank 3: Container
Per title:
Invalid response. This usually means too large logs or errors. Please avoid logging files or lengthy strings.\nError Code: 500
I very much need to know what the req object from the function consists of.
code:
// This is your Appwrite function
// It's executed each time we get a request
export default async ({ req, res, log, error }) => {
log(`Req: ${JSON.stringify(req)}`) // yields above error...
Summary
Developers are encountering an "invalid response" error related to logging large files or lengthy strings. They are seeking information about the contents of the req object in their Appwrite function. The request object is said to be printable and not excessively large unless dealing with big body data or headers. The error code received is 500.
Solution:
In this case, the log statement attempting to stringify the req object may be causing the issue. To view the contents of the req object without errors, developers can modify the log statement to selectively log the necessary information from the req object.