# Eve swagger return html code 200 on bad request

**URL:** <https://forums.eveonline.com/t/eve-swagger-return-html-code-200-on-bad-request/14375>\
**Category:** Third Party Developers\
**Created:** [August 5, 2017, 11:14pm UTC](https://forums.eveonline.com/t/eve-swagger-return-html-code-200-on-bad-request/14375 "2017-08-05T23:14:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn313](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/shawn313/32/413011_2.png) [@shawn313](https://forums.eveonline.com/u/shawn313)\
**Post date:** [August 5, 2017, 11:14pm UTC](https://forums.eveonline.com/t/eve-swagger-return-html-code-200-on-bad-request/14375/1 "2017-08-05T23:14:23Z")

</div>

the api call is using a old token and it return 200 code im using the code to see if i need a new token anyone else seeing this

here is the code if that helps

> export const callingApiPre = () =\> (dispatch, getState) =\> {  
> fetch(‘[https://esi.tech.ccp.is/v1/characters/](https://esi.tech.ccp.is/v1/characters/)’ + getState().ViewChr.Cid + ‘/medals/?datasource=tranquility&token=’ + getState().ViewChr.At)  
> .then(function (response) {  
> if (!response.ok) {  
> return fetch(‘[http://localhost:8000/rf?rf=](http://localhost:8000/rf?rf=)’ + getState().ViewChr.Rt + ‘&id=’ + getState().ViewChr.Id)  
> .then(response =\> response.json())  
> .then((json) =\> {  
> dispatch(updateAt(json));  
> dispatch(updatePf(‘pass’));  
> dispatch(callingEveSkill());  
> console.log(“Bad Api Fixed”);  
> })  
> .catch(err =\> {  
> console.log(“Theie is a issue with the api calls to both the eve and api sever” + err)  
> });  
> }  
> })  
> };

---

<div class="post-metadata">

**Author:** ![shawn313](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/shawn313/32/413011_2.png) [@shawn313](https://forums.eveonline.com/u/shawn313)\
**Post date:** [August 5, 2017, 11:36pm UTC](https://forums.eveonline.com/t/eve-swagger-return-html-code-200-on-bad-request/14375/2 "2017-08-05T23:36:54Z")

</div>

and now its working
