79253301

Date: 2024-12-05 03:21:47
Score: 1
Natty:
Report link

After debugging, I found how I constructed the $endpoint with variables is troubling. Not the permission issues.

Below is the correct one without single quotes:

$endpoint = "https://us-central1-aiplatform.googleapis.com/v1/projects/$project/locations/$location/publishers/$publisher/models/$model:predict";

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: theKing