Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating some legislation nodes via API #399

Open
longhotsummer opened this issue Sep 14, 2021 · 5 comments
Open

Error when creating some legislation nodes via API #399

longhotsummer opened this issue Sep 14, 2021 · 5 comments
Assignees

Comments

@longhotsummer
Copy link
Contributor

The server returns: 422 Client Error: Unprocessable Entity for url: https://lawlibrary.org.za/akn/za-nc/act/p/2012/2/eng@2012-03-28

@cristiroma
Copy link
Collaborator

For future reference I'm leaving here a screenshot how I'm debugging the API

_20210916-034804

@cristiroma
Copy link
Collaborator

I did a small improvement here to expose the underlying error when API call fails.

_20210916-074426

@longhotsummer
Copy link
Contributor Author

Looks like you have made some progress here, Cristian. Here's the error message we get:

{"jsonapi":{"version":"1.0","meta":{"links":{"self":{"href":"http:\/\/jsonapi.org\/format\/1.0\/"}}}},"errors":[{"title":"Unprocessable Entity","status":"422","detail":"Unprocessable Entity: validation failed.","links":{"via":{"href":"http:\/\/lawlibrary.org.za\/akn\/za\/act\/gn\/2013\/921\/eng@2013-11-29"}}}]}

@cristiroma
Copy link
Collaborator

@longhotsummer do you think it would be possible to add this to one of the instances so we can have more details about the underlying error?

@longhotsummer
Copy link
Contributor Author

Sure, Roger can assist. I'll follow up in slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants