Getting unknown error
Hi,
somehow, in our server, we always get this weird error periodically.
Anyone is having the same issue?
Can you share some code to look at?
Hi, I am not sure what code I should share? I have some folders like these:
To debug this JSON parsing error, I'd recommend:
-
Create a minimal example that reproduces the error - this will help isolate the issue and make it easier to troubleshoot.
-
Based on the error message, it specifically mentions '@' character, review all your endpoint calls and responses for that character.
- JSON payloads in your requests
- Response data parsing
- Any fields that might contain special characters like '@'
-
Try validating your JSON for any errors.
-
Log your JSON via manually parsing them, e.g.
console.log(JSON.parse('@')).
It's unlikely that this error is related to SocketCluster itself.
If you share the minimal example, I can help you identify the root cause.
Thanks. Let me try to reproduce with minimal exmpale. Maybe take some time.