You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! My first thought here is that the paths you've posted look like relative paths being treated like absolute paths. In terminal, from any directory, if you run cat /spec/fixtures/base_transformer/mapping.yaml, do you get an error? If so, then the path is the problem.
To get the absolute path for both mapping and input_path, follow these steps:
In terminal, cd into the directory that contains the mapping.yaml file.
Run pwd
Use the output to create the correct path values. For example, if pwd returns Users/d9it/hsds-transformer/spec/fixtures/base_transformer, then your mapping path becomes Users/d9it/hsds-transformer/spec/fixtures/base_transformer/mapping.yaml and your input_path becomes Users/d9it/hsds-transformer/spec/fixtures/base_transformer/input.
Using the API with Docker
Hosted the project on Docker & trying API "/transform" method POST from the postman, Getting an error "A mapping file is required".
I have added the
input_path : /spec/fixtures/base_transformer/input
mapping : /spec/fixtures/base_transformer/mapping.yaml
But still getting the error "A mapping file is required".
The text was updated successfully, but these errors were encountered: