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

springboot restapi HTTPError 500 #996

Closed
pfroad opened this issue Apr 10, 2019 · 2 comments
Closed

springboot restapi HTTPError 500 #996

pfroad opened this issue Apr 10, 2019 · 2 comments

Comments

@pfroad
Copy link

pfroad commented Apr 10, 2019

Description of issue

I get all failed with exception "HTTPError 500" when load testing a restful api in sprintboot project. But it's ok when i use apache benchmark.

Expected behavior

resp.status_code is 200

Actual behavior

resp.status_code is 500

Environment settings

  • OS: Manjaro
  • Python version: 3.7
  • Locust version: 0.11.0

Steps to reproduce (for bug reports)

@task
def test(self):
resp = self.client.get("/test")
print(resp.status_code)

@cgoldberg
Copy link
Member

the 500 comes from your system under test. look at your server logs for the cause.

@pfroad
Copy link
Author

pfroad commented Apr 11, 2019

  1. i use python code to request my restful api, status_code is 200

`import requests

resp = requests.session().get('http://127.0.0.1:8080/actuator/info')
print(resp.status_code)
print(resp.text)`

  1. apache benchmark is also 200
  2. locust all request failed and code is 500. no any locust requests is received in my server.

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

2 participants