movebank / movebank-api-doc

Description of download interface to build calls to the Movebank database using HTTP/CSV or JSON/JavaScript requests
142 stars 19 forks source link

study_attribute entity type throws 500 error #2

Open cboettig opened 7 years ago

cboettig commented 7 years ago

Looks like any request I make against the study_attribute entity type endpoint throws an internal server error, (500). for example, this query:

https://www.movebank.org/movebank/service/direct-read?entity-type=study_attribute&study_id=2238275

throws a 500 error. I don't have trouble querying against other endpoints like study and taxon. Any idea why this is happening? Apologies if this is not the right place to report the error.

xhdong-umd commented 7 years ago

You need to add sensor_type_id like this:

https://www.movebank.org/movebank/service/direct-read?entity_type=study_attribute&study_id={{buffalo}}&sensor_type_id=653

You can find the sensor_type_id through other calls first.

It often require some hidden requirements not fully documented, though I think I have documented the most of them in the document.

You can have a look at my repo here, which have a collection of postman, included many tried and true examples.

screen shot 2017-08-25 at 2 22 11 pm

Note I have to remove some login info from the collection, see more details in the readme.md of my repo.

xhdong-umd commented 7 years ago

Yes, I did document this usage in another file

Need study_id and sensor_type_id in call. Get sensor_type_id from sensor call.

https://www.movebank.org/movebank/service/direct-read?entity_type=study_attribute&study_id=1764627&sensor_type_id=653