Code Monkey home page Code Monkey logo

Comments (5)

dwestness avatar dwestness commented on May 29, 2024 1

Thanks.
You are correct. After i added the header:
User-Agent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

then it started working again for me. I can deal with this workaround in my use case. Appreciate it.

from n8n.

dwestness avatar dwestness commented on May 29, 2024 1

Oddly while the User-Agent does fix this on some of the chrome webstore URLs:
Example: https://chromewebstore.google.com/detail/gmpngcadimnceonnddiajbdgiinelhgm

This one still results in a Maximum number of redirects error when using the User-Agent:
Example: https://chromewebstore.google.com/detail/aeblfdkhhhdcdjpifhhbdiojplfjncoa

when i curl this in bash i get a location response for:
location: https://chromewebstore.google.com/detail/1password-–-password-mana/aeblfdkhhhdcdjpifhhbdiojplfjncoa

But n8n header response shows
https://chromewebstore.google.com/detail/1password-�-password-mana/aeblfdkhhhdcdjpifhhbdiojplfjncoa

Seems like there is some kind of translation issues with the three hyphens in a row?

I recognize that this may be an issue not with n8n, but rather limitations of querying the chrome web store... I will have to figure out another, more reliable way, to lookup the names of Chrome extensions based on their IDs. This is the only method i could find. my workflow using this method was working fine for weeks running daily.. but since Feb 12th it broke. Assumability due to a change on Google's side i suppose.

from n8n.

netroy avatar netroy commented on May 29, 2024

This seems to be two issues:

  1. maxRedirects from the http request node doesn't seem to be actually being used, the we are defaulting to 21.
  2. Chrome webstore is going into a redirect loop for certain user-agents. If you set the user-agent to something that resembles a browser, this issue is resolved. and If you curl that url with -L, it also goes into a redirect loop.

from n8n.

dwestness avatar dwestness commented on May 29, 2024

So from my list of 145 extension IDs i have to query there are 2 that have this issue:

https://chromewebstore.google.com/detail/aeblfdkhhhdcdjpifhhbdiojplfjncoa
AND
https://chromewebstore.google.com/detail/fdjamakpfbbddfjaooikfcpapjohcfmg

These two both have the "triple-hyphen" in their name which is not being evaluated properly for redirection

from n8n.

netroy avatar netroy commented on May 29, 2024

I've created a PR to ensure that the maxRedirects parameter is respected.

However, the encoding issues seem to be related to nodejs (and the relevant http spec) not supporting utf-8 encoding in headers, and since redirects use the location header, and chromewebstore.google.com keeps redirecting to a url that has unicode characters in it, this might be a bit more complicated to fix than I originally thought.

from n8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.