Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403: Forbidden For Airbnb iCal #102

Closed
rajeshsmallarc opened this issue Jul 8, 2019 · 3 comments
Closed

403: Forbidden For Airbnb iCal #102

rajeshsmallarc opened this issue Jul 8, 2019 · 3 comments

Comments

@rajeshsmallarc
Copy link

I am getting 403: Forbidden For Airbnb iCal. Please help.

@djclarkson
Copy link

@rajeshsmallarc Getting the same. Did you find a solution?

@djclarkson
Copy link

To get around this you need to specify a user agent option for request. Here's an example:

`var ical = require('node-ical');
var url = 'airbnb-ical-address'
var options = {
headers: {
'User-Agent': 'MY IPHINE 7s'
}
};

ical.fromURL(url, options, function(err, data) {
if (err) console.log(err);
console.log(data);
});`

@peterbraden
Copy link
Owner

See #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants