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

minting in test shoulder when using R client #11

Open
bheavner opened this issue Jun 14, 2018 · 1 comment
Open

minting in test shoulder when using R client #11

bheavner opened this issue Jun 14, 2018 · 1 comment

Comments

@bheavner
Copy link

bheavner commented Jun 14, 2018

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":"[email protected]","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"
@bheavner
Copy link
Author

per @mikedarcy's advice, I tried omiting the test key from the json , and in that case, it behaves.

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

1 participant