Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Issue with Send a batch Optimize Tours Request

I tried using batch optimize tours client library guide in java - https://cloud.google.com/optimization/docs/introduction/batch_optimize_tours

But it is failing every time and giving the same error at below line, I tried with sample request and also with my own request as json and proto file 

  OperationFuture<BatchOptimizeToursResponse, AsyncModelMetadata> response = fleetRoutingClient
                    .batchOptimizeToursAsync(request);

the error I am receiving -> Job failed with message:Read input from GCS failed: Failed to read Input: gs://"Path to GCS bucket"

I tried the same with optimizeTours Request and it is working fine.

 

0 1 215
1 REPLY 1

Hi @avinashsh_96,

The error message you mentioned indicates that input data was unreachable and it can be caused by a few possible reasons:

  • The GCS bucket is not found or may not exist
  • The Job may not have appropriate permissions to read data from the GCS bucket
  • The file in the GCS bucket that the job is trying to read may be corrupted or does not exist

Please make sure that the needed storage buckets or files exist and have the correct access permissions to perform the job.

Hope this helps.