Problem/Motivation

Warning: Undefined array key "X-Ratelimit-Limit" in Drupal\media_pexels\Plugin\EntityBrowser\Widget\PexelsWidget->getForm() (line 475 of /app/web/modules/contrib/media_pexels-media_pexels/src/Plugin/EntityBrowser/Widget/PexelsWidget.php)

That header is missing and 'X-Ratelimit-Remaining' always shows the default ratelimit 20.000.

Steps to reproduce

Search pexels using the widget.

Proposed resolution

Hide the quota info if we don't have all data.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 media_pexels-3342325-2.patch1.37 KBPrimsi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Primsi created an issue. See original summary.

Primsi’s picture

Status: Active » Needs review
FileSize
1.37 KB

Initial patch.