Issue wirh API data

My JavaScript file API works fin on local host but in render not (gives “something went wrong”)