Why I'm getting Check 'in' failed, found 503 but expected Range ....

Hi,

When trying to run my scenario, I get:

18:09:33.251 [WARN ] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘web_agent_type’ failed : Check ‘in’ failed, found 503 but expected Range(200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210)

Any ideas what is going wrong?

Thanks for help and time.

Hi,

This means that for the HTTP request sent by Gatling the server is returning the HTTP status code 503. The 5xx status codes means that something wrong happened internally in the server.
So, look at the server logs to see what’s wrong.

cheers
Nicolas

I’m getting this exception when the difference between users and ramp is big, for example:
users(1000).ramp(10)
users(500).ramp(5)

Could it be the reason?

Yes, it can mean that your server can’t deal with such a load.
But again, the best is to look at the server logs to understand what the issue is.