Problem/Motivation
We noticed those notices in our logs. After a while, we could not reproduce that again. Maybe the sevice endpoint was unavailable?
Steps to reproduce
Use the Pexels EB widget to search.
Proposed resolution
Add some isset checks for those responses for now.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | media_pexels-3303102-6.patch | 1.45 KB | primsi |
| #4 | media_pexels-3303102-4.patch | 1.32 KB | primsi |
| #3 | media_pexels-3303102-3.patch | 1.59 KB | primsi |
| #2 | media_pexels-3303102-2.patch | 1.48 KB | primsi |
Comments
Comment #2
primsi commentedComment #3
primsi commentedAdding an error if quota data is unavailable.
Comment #4
primsi commentedAssuming that's not just the quota data that is missing. Also fixing wrong parameter setting.
Comment #5
berdirthis should be a translatable string as it's non technical and can happen with regular usage as well. to avoid passing a translatable string in the exception we could maybe check when we display the results if the result list is empty? not sure.
Comment #6
primsi commentedThanks for the review. We do display a message if results are empty (see the catch part). But that message was not translatable. Fixing that.
Comment #8
primsi commented