Skip to content

artstation fails to get csrf token #20289

@EldritchGarden

Description

@EldritchGarden

Routes

/artstation/:handle

Full routes

/artstation/wlop

Related documentation

https://docs.rsshub.app/routes/picture#artstation

What is expected?

Any given artstation handle should successfully return the posts for the user.

What is actually happening?

The request fails with the error TypeError: Cannot read properties of undefined (reading 'set-cookie')

Deployment information

Self-hosted

Deployment information (for self-hosted)

OS: Linux, Node: v22.17.0, Docker: 28.0.1

Additional info

Image

The error occurs because got.post does not return (used to?) headers, so reading the csrf token fails.

return tokenResponse.headers['set-cookie'][0].split(';')[0].split('=')[1];

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSS bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions