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

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #1041

Closed
Hellowlonewolf opened this issue Jul 2, 2019 · 3 comments

Comments

@Hellowlonewolf
Copy link

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
File "c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-packages\locust\core.py", line 361, in run
self.execute_next_task()
File "c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-packages\locust\core.py", line 387, in execute_next_task
self.execute_task(task["callable"], *task["args"], **task["kwargs"])
File "c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-packages\locust\core.py", line 399, in execute_task
task(self, *args, **kwargs)
File "E:\code\test\ysw_Locust\LR_alliance.py", line 85, in test12011
if r_25110.headers['GameCode'] == '0':
File "c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-packages\requests\structures.py", line 54, in getitem
return self._store[key.lower()][1]
KeyError: 'gamecode'

@Hellowlonewolf
Copy link
Author

After running for some time, the problem will be reported.Who can tell me why

@Hellowlonewolf
Copy link
Author

    with self.client.post("/frontend", data=Nonedata(), headers=Headerdata(Uid, token, '25110', roleid),
                          catch_response=True, name="member") as r_25110:
        if r_25110.headers['GameCode'] == '0':
            pass
        else:
            print('联盟成员_Error:', r_25110.headers['Gameinfo'], '\n', roleid)
            r_25110.failure("Got wrong response")

@cgoldberg
Copy link
Member

please ask general questions in the Slack channel.

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