Getting a different response from deployed build

I’ve built my node ts project on my laptop and deployed it to Render.
The same build returns a different response. Here is an example
local server response:

{
    "id": 135,
    "title": "using webP",
    "description": "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
    "mainImage": "https://tempmas.s3.eu-central-1.amazonaws.com/mainWorkImages/2d1923432bec11c3d6a25eb335a0b5469b2d17c51cdf2adf76d4b9711e5e6368?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6EHOAJM5X7YMDLOG%2F20240121%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20240121T000746Z&X-Amz-Expires=3600&X-Amz-Signature=fd6b98d57e10e3fe005bd929bdb61c1a75428ff9de697e90f9e4d46c69a7f866&X-Amz-SignedHeaders=host&x-id=GetObject",
    "basePrice": 55,
    "freelancerId": 36,
    "createdAt": "2024-01-17T23:24:44.188Z",
    "updatedAt": "2024-01-17T23:24:44.188Z"
}

Deplyed server response:

{
    "id": 135,
    "title": "using webP",
    "description": "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
    "basePrice": 55,
    "freelancerId": 36
}

Hi,

There will always be differences between environments: development mode/Local, production mode/Render, etc. These differences need to be considered and configured as required for your own app in each environment. From what you’ve shown this doesn’t feel like a Render issue, but a code one.

However, if you do think this is a Render issue please could you share some specific details of the issue you are experiencing that may help us troubleshoot it with you, e.g. any logs/errors/output, specific URLs, service name/ID, reproduction steps, etc.

If you don’t want to share these details on the community forum, please feel free to raise a ticket from the “Help” or “Contact Support” links while logged into the Dashboard.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.