• Resolved btikkanen

    (@btikkanen)


    When I change the API key for Pexels on any of my sites, I receive the error “The API key is not vaild for this provider – enter a new API key and try again.” during the verification process.

    However, if I reset to the default API key I receive no search results, even when using simple one word requests, such as, cat, dog, or bike. The same searches work correctly when performed on the Pexels website.

    The issues do not occur with Unsplash or Pixabay, and I have only noticed since the upgrade to version 5.0 of Instant Images.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Second that, I have the same problem – Pexels does accept the default API key and not an API key created with my account. However the previous version 4.6.3 works.

    • This reply was modified 1 year, 10 months ago by Yui.
    • This reply was modified 1 year, 10 months ago by Mikael Winterkvist.
    Plugin Author Darren Cooney

    (@dcooney)

    @btikkanen @norhwiz Yea – I’ll look into this and get a fix out.

    thanks for the report.

    Awesome!

    Plugin Author Darren Cooney

    (@dcooney)

    I went ahead and created another API key to test and I can report I am also seeing issues after changing the key on production.

    Even If I revert the key, there is a 401 Internal Server Error being returned.

    It possibly has something to do with the headers and caching but it’s been difficult to debug.

    Stay tuned.

    Great Work!

    Being able to reproduce a bug is half way to a solution ??

    Plugin Author Darren Cooney

    (@dcooney)

    heh Thanks.

    I’ve sent in a support request to Pexels directly to see if they have any ideas. I believe that the proxy is being cached or blocked so we will see what they say.

    Thread Starter btikkanen

    (@btikkanen)

    @dcooney @norhwiz Thank you. I forgot to mention in my original comment that reverting to version 4.6.3 of the plugin allowed Pexels searching and API requests to work again on my production sites. Thank you, Mikael, for adding that information from your testing. Also, thank you, dcooney, for your support.

    Plugin Author Darren Cooney

    (@dcooney)

    @btikkanen Yes, this is because Instant Images 5.0 routes requests through a custom proxy server I built and for some reason requests being sent from that server appear to be blocked or cached.
    e.g. Proxy URL

    I know they are being blocked because I can run the proxy locally I see no issues.

    Hopefully I will get a response from pexels soon.

    Plugin Author Darren Cooney

    (@dcooney)

    @btikkanen @norhwiz I’ve just released 5.0.1 that should temporarily resolve the issue until Pexels responds to my support request.

    Thanks, great work I have been using the previous version up until now so I have vad absolutely no problems.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Pexels fails to validate API or return search results’ is closed to new replies.