"Can not GET" while deploying on heroku

0

Hello, has anyone ever had something similar that might help me?

When I put my project into operation on heroku, some functionality related to "v1 / photos" does not work and the console returns me the following message:

  

Failed to load resource: the server responded with a status of 404   (Not Found) photos-controller.js: 12 Objectconfig: Objectdata: "Can not   GET / v1 / fotos↵ "headers: (c) status: 404statusText:" Not   Found " proto : Object

Follow the heroku link: link

github link: link

    
asked by anonymous 10.10.2016 / 22:20

1 answer

0

Heroku does not accept writing, only reading. In case of image upload, it can even be saved in a few minutes, but it will be automatically deleted at some point.

The image will only be available to access it if it exists in your project when you are deploying your project.

To solve this, you can direct the image upload to a web service, and do not leave them in your node.js instance. A good service that saves your images in the cloud is Cloud .

    
15.10.2016 / 17:55