Skip to content

Commit a38c69f

Browse files
authored
Update how-to-troubleshoot-batch-endpoints.md
1 parent e9ce167 commit a38c69f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/machine-learning/batch-inference/how-to-troubleshoot-batch-endpoints.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,11 @@ __Message logged__: There is no succeeded mini batch item returned from run(). P
161161
__Reason__: The batch endpoint failed to provide data in the expected format to the `run()` method. This may be due to corrupted files being read or incompatibility of the input data with the signature of the model (MLflow).
162162

163163
__Solution__: To understand what may be happening, go to __Outputs + Logs__ and open the file at `logs > user > stdout > 10.0.0.X > process000.stdout.txt`. Look for error entries like `Error processing input file`. You should find there details about why the input file can't be correctly read.
164+
165+
### Audiences in JWT are not allowed
166+
167+
__Context__: When invoking a batch endpoint using its REST APIs.
168+
169+
__Reason__: The access token used to invoke the REST API for the endpoint/deployment is indicating a token that is issued for a different audience/service. Azure Active Directory tokens are issued for specific actions.
170+
171+
__Solution__: When generating an authentication token to be used with the Batch Endpoint REST API, ensure the `resource` parameter is set to `https://ml.azure.com`. Please notice that this resource is different from the resource you need to indicate to manage the endpoint using the REST API. All Azure resources (including batch endpoints) uses the resource `https://management.azure.com` for managing them. Ensure you use the right resource URI on each case. Notice that if you want to use the management API and the job invocation API at the same time, you will need two tokens.

0 commit comments

Comments
 (0)