Open stijnb1234 opened 1 year ago
Looks like the API is not accessible in the Docker Compose build. I'm getting the same error with a CSV file. In the server logs it looks like this:
POST /api/v1/projects/168efedb-94c2-46b5-81a1-64695ce13703/imports?format=csv&locale=en_US HTTP/1.0 404
@stijnb1234 I just tried to import some random YAML file with our standard docker-compose file (https://github.com/ever-co/ever-traduora/blob/develop/docker-compose.yaml), and it all worked for me. Please share what file you try to import in case there's something wrong with the file itself so I can test.
@loleg , not sure, for me, API request worked; see below:
Request URL: http://localhost:8080/api/v1/projects/b56a5a80-e8e2-4047-a650-ed909e28b42e/imports?format=yamlflat&locale=de_CH
Request Method: POST
Status Code: 200 OK
:point_up: Thanks. I've opened a separate issue since my problem is a CSV and even more specifically, English.
I have the same issue when I want to import a PO file. I tried hosting the Docker container on a Linux and on a Windows host, same error on both machines. The only change I made to the compose file is adding a database password and to add a volume for the mysql data. Is there any way to get more information what is happening? Log file, etc.?
Edit: I also tried to use the docker-compose file without any changes, same issue.
@mmttim well, if you run it in docker, you can ssh to it, run API manually in console and see all output and most probably you should see why / where it failing and see error message etc. Not different to any other NodeJs app running inside Docker container honestly.
Describe the bug I'm trying to import a yaml file, but I get: "Error, resource not found"
To Reproduce
Expected behavior It should just import
Screenshots![image](https://user-images.githubusercontent.com/27051051/226177248-4fc44fb0-117f-4286-b9e8-7b7fa5fae54a.png)
Environment (please complete the following information):
latest
Additional context My docker-compose.yaml file (created in Portainer):
(I've connected it to another network too, so that I can proxy it to my subdomain)