Instagram error "Cannot read properties of undefined (reading 'x-ig-set-www-claim')"
- Dominant language
- TypeScript
- Stars
- 46.2k
- Forks
- 10.2k
- Avg merge
- 18h 40m
- Merged PRs (30d)
- 172
Description
### Routes
```routes
/instagram/2/:category/:key
```
### Full routes
```fullroutes
/instagram/2/user/stefaniejoosten
```
### Related documentation
https://docs.rsshub.app/install#route-specific-configurations
### What is expected?
See RSS :)
### What is actually happening?
I got this error:
TypeError: Cannot read properties of undefined (reading 'x-ig-set-www-claim')
### Deployment information
Self-hosted
### Deployment information (for self-hosted)
Node Version: v21.7.2, Git Date: Sun, 07 Apr 2024 19:18:43 GMT
### Additional info
```shell
I have set IG_COOKIE set as suggested here https://github.com/DIYgod/RSSHub/discussions/13237, but I got this error: TypeError: Cannot read properties of undefined (reading 'x-ig-set-www-claim')
Error Message:
TypeError: Cannot read properties of undefined (reading 'x-ig-set-www-claim')
Route: /instagram/2/:category/:key
Full Route: /instagram/2/user/stefaniejoosten
Node Version: v21.7.2
Git Hash: 8757a93f
Git Date: Sun, 07 Apr 2024 19:18:43 GMT
```
### This is not a duplicated issue
- [X] I have searched [existing issues](https://github.com/DIYgod/RSSHub/issues) to ensure this bug has not already been reported
Contributor guide
Research direction
Start at the entry point for /instagram/2/:category/:key and reproduce /instagram/2/user/stefaniejoosten using the supplied IG_COOKIE and Node v21.7.2 context. Trace where x-ig-set-www-claim is read, and consider the work done when the route returns an RSS feed without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100