Giter Club home page Giter Club logo

Comments (15)

romeshkosme avatar romeshkosme commented on August 18, 2024 1

@thebarshablog I rechecked the language-specific and topic-specific pages and they are responding 404 on page refresh.

from verto.

JeniferConstantino avatar JeniferConstantino commented on August 18, 2024 1

Sorry for taking so long to answer. It worked, thank you :)

from verto.

MAdisurya avatar MAdisurya commented on August 18, 2024 1

Hey, not sure if anyone was still working on this, but I've put up a PR with a (hopefully) working solution to this issue :)

from verto.

thebarshablog avatar thebarshablog commented on August 18, 2024

Hey @lucavallin I tried loading several language-specific and topic-specific pages, as of present moment, it doesn't lead to a 404 error page but successful directs to the respective github repositories. Should this issue still be open?

from verto.

romeshkosme avatar romeshkosme commented on August 18, 2024

Hey @thebarshablog, it does lead to 404. Try [https://firstissue.dev/language/javascript/]

first-issue-404

from verto.

thebarshablog avatar thebarshablog commented on August 18, 2024

In such a case, @romeshkosme, the issue should be renamed/specifics must be added. It's a happenstance under JavaScript whereas when I'm selecting based on other mentioned languages, its working just as fine. Please recheck again and confirm.

from verto.

romeshkosme avatar romeshkosme commented on August 18, 2024

Hey @lucavallin If nobody has picked it up, I would like to pick this one.

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

@romeshkosme Yep, feel free to work on this!

from verto.

JeniferConstantino avatar JeniferConstantino commented on August 18, 2024

Hello, is this bug still existing?

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

@JeniferConstantino It is! There has been an attempt, see #68. Unfortunately the fix there won't work for us.

from verto.

JeniferConstantino avatar JeniferConstantino commented on August 18, 2024

Hello, thank you for answering :).

I would like to work on this issue but the problem is that I'm not being able to simulate the bug. I launched on development mode (npm run dev). When I launched, it took me to the website:

image

As said in the issue description, I went to a language-specific page and chose to browse by the language of "JavaScript", for example. Then I reload the page by clicking on F5 (or refreshing the link). By doing this I was expecting the error to show up, instead, everything happens as I think it should:

image

Am I doing something wrong?

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

@JeniferConstantino Yes, that works in dev. The problem is that in production the app is exported as a static site, and that's where it breaks. You can try and reproduce it locally by building the website and then running npm run export. If you open the exported site (which is static) you should be able to reproduce it. Googling for next js static site reload 404 brought me here: https://nextjs.org/docs/basic-features/data-fetching/get-static-props. Maybe a possible solution.

from verto.

JeniferConstantino avatar JeniferConstantino commented on August 18, 2024

Thank you, I'm seeing if I can solve the bug :)

from verto.

JeniferConstantino avatar JeniferConstantino commented on August 18, 2024

Hello.

Problem: I'm having authorization issues on the Octokit API. After doing "npm build run" it returns 403 because of credentials.

Explanation:

I've been trying to make "npm run export", but before doing this I have to make "npm run build". When executing this command I get the following:

image

And after waiting some time it retrieves me this:

image

The code that is being executed is the following:

image

With this being said, I conclude that the error occurs because I excited the number of requests to the API being used (60 requests as pointed out on the curl in the second image). I've read in here: https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting that the number of requests can increase if I'm logged in GitHub. I've created a token, but now I'm not sure how can I log in to GitHub so that the API detects it.

Thank you in advance.

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

Hello! Ah yes, that's expected when running npm run build locally. We had a flag in place to avoid this but it seems it has been removed. Anyway, that happens because when you build the app, we get the data from GitHub to display it on the website. It's 1300 repositories and it goes through the API call quota quickly. What you can do for now is to remove the prebuild script from package.json so it is not called before a build runs. In this way, the app will use the generated.json data example that comes with the repo. Let me know if this works!

from verto.

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.