projecttacoma / cqm-parsers

This project contains libraries for parsing HQMF documents and parsing MAT packages.
Apache License 2.0
5 stars 3 forks source link

Error when trying to get response from VSAC API #176

Open dariusz-sanczyk opened 11 months ago

dariusz-sanczyk commented 11 months ago

I am trying to parse some eCQM using your paraser but i have continuously getting an error:

image

I am getting response code: 0

[# @options={    
:httpauth_avail=>0,     
:total_time=>0.246047,
:starttransfer_time=>0.0,    
:appconnect_time=>0.0,     
:pretransfer_time=>0.0,
:connect_time=>0.123639,    
:namelookup_time=>0.007652,     
:redirect_time=>0.0,
:effective_url=>"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?id=2.16.840.1.113883.3.464.1003.101.12.1083&profile=eCQM%20Update%202023-05-04",     
:primary_ip=>"130.14.16.40",    
:response_code=>0,     :request_size=>0,  
:redirect_count=>0,     :redirect_url=>nil,
:size_upload=>0.0,    
:size_download=>0.0,     :speed_upload=>0.0,  
:speed_download=>0.0,    
:return_code=>:bad_content_encoding,    
:response_headers=>"",    
:response_body=>"",     
:debug_info=>
#},
@request=#  
@base_url="https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets",     @original_options={        
:params=>{:id=>"2.16.840.1.113883.3.464.1003.101.12.1083",
:profile=>"eCQM Update 2023-05-04"},        
:userpwd=>"apikey:3c4f1c72-0b7f-4a41-9e0e-8e06daaf9bf1"},
@options={         
:params=>{        
:id=>"2.16.840.1.113883.3.464.1003.101.12.1083",  
 :profile=>"eCQM Update
2023-05-04"},            
:userpwd=>"apikey:3c4f1c72-0b7f-4a41-9e0e-8e06daaf9bf1",
:headers=>{"User-Agent"=>"Typhoeus - https://github.com/typhoeus/typhoeus",
"Expect"=>""},          
:maxredirs=>50}, @hydra=#1},     @max_concurrency=1,
@multi=#    
@execution_mode=:perform,     @timeout=#,    
@timeval=#,    
@fd_read=#,    
@fd_write=#,    
@fd_excep=#,    
@max_fd=#,
@easy_handles=[], @handle=#,     @running_count=0>,
@queued_requests=[], @memory={}>, @on_progress=[],    
@response=#,  
@on_complete=[],     @on_failure=[]> >]

I was trying also authenticate with VSAC TGT/ST but with the same results. When i am using Postman for this request with basic auth, everything is working fine. Can anyone help me solve this problem ? @dczulada

@jkotanchik-SB I saw that you recently making some changes. Maybe you encounter the same issues ?

hydra commented 11 months ago

can you please use backticks for quoting to avoid @mentioning everyone.

e.g. @hydra not @hydra

many thanks.

dariusz-sanczyk commented 11 months ago

Yes, good point pal. Thanks. BTW maybe you got some idea about my problem?