Failed to load resources error

The website is working totally fine on the localhost but after deploying in render it is showing me this error. Please help me out with this.

Failed to load resource: the server responded with a status of 500 ()
console.js:213 TypeError: s.map is not a function
at tP (index-iIHi-sHC.js:1811:28632)
at ec (index-iIHi-sHC.js:38:19469)
at Fl (index-iIHi-sHC.js:40:3134)
at jm (index-iIHi-sHC.js:40:44604)
at Am (index-iIHi-sHC.js:40:39613)
at dw (index-iIHi-sHC.js:40:39541)
at mo (index-iIHi-sHC.js:40:39395)
at Ql (index-iIHi-sHC.js:40:35787)
at Om (index-iIHi-sHC.js:40:34738)
at x (index-iIHi-sHC.js:25:1569)
overrideMethod @ console.js:213
Show 1 more frame
Show less
index-iIHi-sHC.js:40 Uncaught TypeError: s.map is not a function
at tP (index-iIHi-sHC.js:1811:28632)
at ec (index-iIHi-sHC.js:38:19469)
at Fl (index-iIHi-sHC.js:40:3134)
at jm (index-iIHi-sHC.js:40:44604)
at Am (index-iIHi-sHC.js:40:39613)
at dw (index-iIHi-sHC.js:40:39541)
at mo (index-iIHi-sHC.js:40:39395)
at Ql (index-iIHi-sHC.js:40:35787)
at Om (index-iIHi-sHC.js:40:34738)
at x (index-iIHi-sHC.js:25:1569)
api/listing/get?type=rent&limit=4:1

   Failed to load resource: the server responded with a status of 500 ()

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.

If the service responded with a 500, the best place to start would be the service logs.

Alan

I’m having the same issue here. Deployed a new phoenix app on Render and resources are not being loaded.

:cry:

Asset loading will often be a code/configuration issue and not directly a Render one.

However, as the original post is related to Node, and yours is related to Elixir/Phoenix, maybe start your own topic with some details showing the issue you’re having, e.g. URLs, logs, error messages, what you’ve tried, etc.

Alan

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