NHMDenmark / DaSSCo-Integration

This Repo will include integration of dassco storage from northtec
0 stars 0 forks source link

Status 400 for ars endpoint get in progress assets #133

Closed Baeist closed 2 weeks ago

Baeist commented 2 weeks ago

/ars/api/v1/assets/inprogress/?onlyFailed=false or /ars/api/v1/assets/inprogress/ are giving me 400 back.

Baeist commented 2 weeks ago

This end point used to provide a list of assets and their status for assets that did not have the status COMPLETED. After the reset of the database it has stopped working as before and is giving status 400 with the html code.

Grand666 commented 2 weeks ago

Hi Lars,

I can't reproduce this error, I'm getting a 200 and a list:

[ { "asset_guid": "test-asset-4", "parent_guid": null, "error_timestamp": null, "status": "METADATA_RECEIVED", "error_message": null, "share_allocation_mb": 40 }, { "asset_guid": "test-asset-2", "parent_guid": "test-asset-1", "error_timestamp": null, "status": "METADATA_RECEIVED", "error_message": null, "share_allocation_mb": 40 }, { "asset_guid": "test-asset-3", "parent_guid": "test-asset-1", "error_timestamp": null, "status": "METADATA_RECEIVED", "error_message": null, "share_allocation_mb": 40 }, ... ]

When calling: https://dassco.dk/ars/api/v1/assets/inprogress/?onlyFailed=false https://dassco.dk/ars/api/v1/assets/inprogress/ https://dassco.dk/ars/api/v1/assets/inprogress

Called through the Postman.

Baeist commented 2 weeks ago

It was an issue with the authorization on my end. It is working.