API monitoring: Test Results API call returns 400 Bad request

book

Article ID: 223059

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

Making the following API call to return the results of an API Monitoring test:

curl 'https://api.runscope.com/buckets/<bucket ID>/tests/<test ID>/results \

-X GET \

-H 'Content-Type: application/json' \

-H 'Authorization: Bearer <bearer>`

 

use to work but now fails with the following error:

{
"data": {},
"meta": {
"status": "error"
},
"error": {
"status": 400,
"message": "Bad Request"
}
}

Cause

Content-type":"application/json" header is not required

Environment

Release : 1.0

Component : BLAZEMETER API MONITORING

Resolution

Removing the "Content-type":"application/json" header resolved the issue

 

curl 'https://api.runscope.com/buckets/<bucket ID>/tests/<test ID>/results \

-X GET \

-H 'Authorization: Bearer <bearer>`