You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your API supports caching of images already analysed, if a recognition on an image has been run before, the POST call will instantly return the result, not just in two steps. The struct created here will omit 'name' and 'skipReason', but it can already be present if the scenario mentioned above happens. Therefore when updateJob is called it won't update the job, because it only does when status is not 'completed'. This would result in a job forever being 'completed' and never having actual result 'name'.
Workaround:
job, _:=cloudSightClient.RemoteImageRequest(imageUrl, params)
job.Status=cloudsight.StatusNotCompleted// Set the state to 'notCompleted'cloudSightClient.WaitJob(job, 20*time.Second)
The text was updated successfully, but these errors were encountered:
cloudsight-go/cloudsight.go
Line 236 in 30d95be
Your API supports caching of images already analysed, if a recognition on an image has been run before, the POST call will instantly return the result, not just in two steps. The struct created here will omit 'name' and 'skipReason', but it can already be present if the scenario mentioned above happens. Therefore when updateJob is called it won't update the job, because it only does when status is not 'completed'. This would result in a job forever being 'completed' and never having actual result 'name'.
Workaround:
The text was updated successfully, but these errors were encountered: