Open bheavner opened 6 years ago
When sending json from the R client, I'm observing surprising behavior. For some reason, sending json with test set to False is still minting minids in the test shoulder:
httr::with_verbose(httr::POST(url, body = body, ua, encode = "json")) -> POST /minid HTTP/1.1 -> Host: minid.bd2k.org -> User-Agent: https://github.com/bheavner/minidtools -> Accept-Encoding: gzip, deflate -> Accept: application/json, text/xml, application/xml, */* -> Content-Type: application/json -> Content-Length: 368 -> >> {"test":"False","checksum_function":"sha256","checksum":"2958cdfafa3001be6db6f059f263cf98d359668611c6e425b9a79dc68a6ede69","email":"bheavner@gmail.com","code":"argleblarg","title":"2_snv.tsv.gz","locations":["sftp://gap-upload.ncbi.nlm.nih.gov/exchange/Combined_Study_Data/Genotypes/freeze.5_annotation/WGSA_parsed/provisional/2_snv.tsv.gz"]} <- HTTP/1.1 201 CREATED <- Date: Thu, 14 Jun 2018 22:40:33 GMT <- Server: Apache/2.4.7 (Ubuntu) <- Content-Length: 43 <- Content-Type: application/json <- Response [http://minid.bd2k.org/minid] Date: 2018-06-14 22:40 Status: 201 Content-Type: application/json Size: 43 B { "identifier": "ark:/99999/fk4pg2wz61"
per @mikedarcy's advice, I tried omiting the test key from the json , and in that case, it behaves.
When sending json from the R client, I'm observing surprising behavior. For some reason, sending json with test set to False is still minting minids in the test shoulder: