Replies: 1 comment
-
Dear @LJyanyan |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear developers, I encountered an error while using the auto-test function as shown below. I have checked my API key and confirmed that it is correct. I also tried applying for a new API key but still encountered the same error. Could you please advise me on a good solution to this problem?
Error message:
Description
Traceback (most recent call last):
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/pymatgen/ext/matproj.py", line 278, in _make_request
raise MPRestError(f"REST query returned with error status code {response.status_code}")
pymatgen.ext.matproj.MPRestError: REST query returned with error status code 403
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/deepmd/anaconda3/envs/deepmd-gpu/bin/dpgen", line 8, in
sys.exit(main())
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/dpgen/main.py", line 185, in main
args.func(args)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/dpgen/auto_test/run.py", line 57, in gen_test
run_task(args.TASK, args.PARAM, args.MACHINE)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/dpgen/auto_test/run.py", line 24, in run_task
make_equi(confs, inter_parameter, relax_param)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/dpgen/auto_test/common_equi.py", line 87, in make_equi
get_structure(crys_type).to('POSCAR', os.path.join(ii, 'POSCAR'))
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/dpgen/auto_test/mpdb.py", line 25, in get_structure
return mpr.get_structure_by_material_id(mp_id)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/pymatgen/ext/matproj.py", line 709, in get_structure_by_material_id
data = self.get_data(material_id, prop=prop)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/pymatgen/ext/matproj.py", line 352, in get_data
return self._make_request(sub_url)
File "/home/deepmd/anaconda3/envs/deepmd-gpu/lib/python3.10/site-packages/pymatgen/ext/matproj.py", line 282, in _make_request
raise MPRestError(msg)
pymatgen.ext.matproj.MPRestError: REST query returned with error status code 403. Content: b'{"valid_response": false, "error": "API_KEY is not a valid key.", "version": {"db": "2020_09_08", "pymatgen": "2022.0.8", "rest": "2.0"}, "created_at": "2023-05-27T18:25:17.777518"}'
Beta Was this translation helpful? Give feedback.
All reactions