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

"List index out of range" during the score run #52

Open
joshidp opened this issue Jun 30, 2021 · 0 comments
Open

"List index out of range" during the score run #52

joshidp opened this issue Jun 30, 2021 · 0 comments

Comments

@joshidp
Copy link

joshidp commented Jun 30, 2021

Hi,

I am getting below error while calling the score route. Please suggest whats the issue?

Payload:

[
	{
		"a": "wwww",
		"b": 1234,
		"c": "e56b6813-ff56-eb11-a812-000d3a1c5567",
		"d": 1
	}
]

Error;

2021-06-30T03:05:58.099463444Z 2021-06-30 03:05:58,099 | root | INFO | Validation Request Content-Type
2021-06-30T03:05:58.100660957Z 2021-06-30 03:05:58,100 | root | ERROR | Encountered Exception: Traceback (most recent call last):
2021-06-30T03:05:58.100676557Z   File "/var/azureml-server/synchronous/routes.py", line 64, in run_scoring
2021-06-30T03:05:58.100692557Z     response = invoke_user_with_timer(service_input, request_headers)
2021-06-30T03:05:58.100746457Z   File "/var/azureml-server/synchronous/routes.py", line 89, in invoke_user_with_timer
2021-06-30T03:05:58.100766958Z     params = prepare_user_params(input, headers, aml_request._rawHttpRequested)
2021-06-30T03:05:58.100770458Z   File "/var/azureml-server/routes_common.py", line 141, in prepare_user_params
2021-06-30T03:05:58.100773858Z     params = {main.run_input_parameter_name: input[main.wrapped_parameter_name]}
2021-06-30T03:05:58.100777158Z TypeError: list indices must be integers or slices, not str
2021-06-30T03:05:58.100780458Z
2021-06-30T03:05:58.100783658Z During handling of the above exception, another exception occurred:
2021-06-30T03:05:58.100786958Z
2021-06-30T03:05:58.100790058Z Traceback (most recent call last):
2021-06-30T03:05:58.100793458Z   File "/azureml-envs/azureml_a8297c74e6ecce9cd47fcb8669ec1e61/lib/python3.8/site-packages/flask/app.py", line 1832, in full_dispatch_request
2021-06-30T03:05:58.100797158Z     rv = self.dispatch_request()
2021-06-30T03:05:58.100800358Z   File "/azureml-envs/azureml_a8297c74e6ecce9cd47fcb8669ec1e61/lib/python3.8/site-packages/flask/app.py", line 1818, in dispatch_request
2021-06-30T03:05:58.100803858Z     return self.view_functions[rule.endpoint](**req.view_args)
2021-06-30T03:05:58.100807158Z   File "/var/azureml-server/synchronous/routes.py", line 43, in score_realtime
2021-06-30T03:05:58.100810658Z     return run_scoring(service_input, request.headers, request.environ.get('REQUEST_ID', '00000000-0000-0000-0000-000000000000'))
2021-06-30T03:05:58.100814058Z   File "/var/azureml-server/synchronous/routes.py", line 77, in run_scoring
2021-06-30T03:05:58.100819058Z     raise RunFunctionException(str(exc))
2021-06-30T03:05:58.100822358Z run_function_exception.RunFunctionException
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

1 participant