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
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Primsi created an issue. See original summary.

primsi’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB

Initial patch.

primsi’s picture

primsi’s picture

Status: Needs review » Fixed

  • primsi committed 2f70771d on 1.x
    Issue #3342325 by primsi: Warning: Undefined array key "X-Ratelimit-...
primsi’s picture

Missed to merge this one.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.