8 months ago
I have problems when deploying my Api ASP .net core 8, I get this exception without further details and I really do not know what it can be, the code works fine locally and I have configured all the environment variables to work correctly in production, moreover I do not even have compile errors.
this is the error
Unhandled exception.
Cannot print exception string because Exception.ToString() failed.
Translated with DeepL.com (free version)
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
8 months ago
Hi there , I'm unsure why the error is occurring in Railway even though it doesn't happen locally. Could you search your code to check where an exception might be raised and could be getting converted to a string incorrectly?
Further, to narrow down where this error occurring, I'd add more logs and check how far along the logic my deploy runs before crashing.
Status changed to Awaiting User Response railway[bot] • 8 months ago
8 months ago
Apparently I have incompatibility problems with certain packages and that is the reason for the exception, I am already solving these problems that are not noticeable in production, thanks for your answer, it helped me to find the error.
Attachments
Status changed to Awaiting Railway Response railway[bot] • 8 months ago
Status changed to Solved chandrika • 8 months ago