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

Response validation error for certain images for certain users #423

Open
kueda opened this issue Feb 12, 2024 · 3 comments
Open

Response validation error for certain images for certain users #423

kueda opened this issue Feb 12, 2024 · 3 comments
Labels

Comments

@kueda
Copy link
Member

kueda commented Feb 12, 2024

When I do this using a JWT for https://staging.inaturalist.org/people/kueda:

curl -XPOST \
  -H "Authorization: MY-JWT" \
  -F "image=@/Users/kueda/Downloads/PXL_20240212_022733755.jpg" \
  "https://stagingapi.inaturalist.org/v2/computervision/score_image"

with this image: PXL_20240212_022733755

I get this response:

{"status":"500","errors":[{"errorCode":"500","message":"Invalid response for status code 200: common_ancestor/taxon/establishment_means: must NOT have additional properties"}]}

Weirdly, I do the same with a JWT for https://staging.inaturalist.org/people/kueda-test, I do not get an error. I've tried fiddling with the place settings for the kueda user on staging but it doesn't seem to make a difference.

@kueda kueda added the bugs label Feb 12, 2024
@kueda kueda added this to Web Feb 12, 2024
@kueda kueda moved this to Todo in Web Feb 12, 2024
@pleary
Copy link
Member

pleary commented Jul 22, 2024

I think this was fixed in 41fcf0b. I was able to replicate the problem using the image and user and taxon - it was related to the place associated with the user and the common ancestor taxon. If it occurs again, it would be great to get another test image note which user is experiencing the problem

@pleary pleary closed this as completed Jul 22, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Web Jul 22, 2024
@kueda
Copy link
Member Author

kueda commented Jul 30, 2024

Seems to still be happening:

Auth as kueda-test, using this request:

curl -XPOST \
  -H "Authorization: kueda-test-jwt" \
  -F "image=@/Users/kueda/Downloads/lupine.jpg" \
  -F "lat=37" \
  -F "lng=-122" \
  --form-string 'fields=(combined_score:!t,taxon:(ancestor_ids:!t,default_photo:(id:!t,url:!t),name:!t,preferred_common_name:!t,rank:!t,rank_level:!t))' \
  "https://stagingapi.inaturalist.org/v2/computervision/score_image"

lupine

@kueda kueda reopened this Jul 30, 2024
@kueda kueda moved this from Done to Todo in Web Jul 30, 2024
@kueda
Copy link
Member Author

kueda commented Aug 20, 2024

I can stell replicate using an auth token for the kueda-test user and this image:

curl -XPOST \
  -H "Authorization: kueda-test-jwt" \
  -F "image=@/Users/kueda/Downloads/zamioculcas.JPG" \
  -F "lat=37" \
  -F "lng=-122" \
  --form-string 'fields=(combined_score:!t,taxon:(ancestor_ids:!t,default_photo:(id:!t,url:!t),name:!t,preferred_common_name:!t,rank:!t,rank_level:!t))' \
  "https://stagingapi.inaturalist.org/v2/computervision/score_image"

zamioculcas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants