Fatal error: In Feedback.sendFeedbackForFeature API #18537
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Documentation
For issues related to in-app product help messages, or to the Matomo knowledge base.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Regression
Indicates a feature used to work in a certain way but it no longer does even though it should.
Milestone
Getting below error.
I noticed this API is enforcing specific types. I'm thinking in API's we should likely not make use of PHP types like
(?string $featureName, int $like
as it could cause issues like fatal errors when you actually want a regular error message response that the input is not correct.Could we maybe remove those types there and in general document to not use any types there? We could maybe even have an automated test that checks that no API has specific parameters enforced.
It can be frustrating otherwise when consuming the API and all you get is an HTTP 500 and you don't know what you're doing wrong. Also we get emailed about it every time this happens which can be annoying too.
The text was updated successfully, but these errors were encountered: