Submit Service ping fails sometimes with Invalid usage_data_id in response
We noticed that Service ping fails sometimes when submitting to Version App with error
Invalid usage_data_id in response
See case #336716 (comment 641671669)
When I tried the first time from my computer it failend.
When running the second time it worked, and I could not reproduce it.
This should be investigated and fixed
Details
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/service_ping/submit_service.rb#L36
# service_ping/submit_service.rb
unless version_usage_data_id.is_a?(Integer) && version_usage_data_id > 0
raise SubmissionError, "Invalid usage_data_id in response: #{version_usage_data_id}"
end
cc @gitlab-org/growth/product-intelligence/engineers
Edited by Alina Mihaila