egoist / gh-pinned-repos Goto Github PK
View Code? Open in Web Editor NEWAPI service for retrieving pinned repos on GitHub.
Home Page: https://gh-pinned-repos.egoist.dev
License: MIT License
API service for retrieving pinned repos on GitHub.
Home Page: https://gh-pinned-repos.egoist.dev
License: MIT License
Server seems to be down. So I tried to deploy it myself but I think there's some problem in the cheerio library.
Relevant issue: Bestulo/deno-cheerio#10
Hello, I noticed on my portfolio that there is a problem. My Github username returns an empty table, even though I have exactly 6 pinned projects.
Hi.
I have a problem form Cors policy. My website worked ok, but now fails when try to get my repo info,
Could you help me?
https://joseluisgs.github.io/proyectos/#repositorio (My website) I use a Vue component in my VuePress page
This is my component
https://github.com/joseluisgs/joseluisgs/blob/master/web/docs/.vuepress/components/ReposPinned.vue
I get the repo info with
async mounted() {
// https://gh-pinned-repos.now.sh/
const response = await fetch("https://gh-pinned-repos.now.sh/?username=joseluisgs");
const data = await response.json();
this.repositorios = data;
}
But, now, I have this problem
Access to fetch at 'https://gh-pinned-repos.vercel.app/?username=joseluisgs' (redirected from 'https://gh-pinned-repos.now.sh/?username=joseluisgs') from origin 'https://joseluisgs.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I try to add no-cors value, or change to use axios, but I always have the same problem
const url = 'https://gh-pinned-repos.now.sh/?username=joseluisgs';
const config = {
method: 'GET',
mode: 'no-cors',
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
I checked your project and you have
/* allow cors from any origin /
res.setHeader('Access-Control-Allow-Origin', '')
res.setHeader('Access-Control-Request-Method', '')
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET')
res.setHeader('Access-Control-Allow-Headers', '')
Please, coudl yopu help me to solve it
Thank you very much
Jose
Hi
O have his response when I use: https://gh-pinned-repos.egoist.sh/?username=joseluisgs
This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: cdg1::7znmw-1628181658492-353979fee031
If you are a visitor, contact the website owner or try again later.
If you are the owner, learn how to fix the error and check the logs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.