Cyfrin / Cyfrin/Updraft

Some "Ask with AI" links to ChatGPT errors with 431 status code

Open
#605 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
127
Forks
93
PR merge metrics
No merged PRs in 30d

Description

## Steps to reproduce error

1. Go to https://updraft.cyfrin.io/courses/solana/core-concepts/ethereum-and-solana
2. Click on "Written Lesson"
3. Click on "Ask with AI"
4. Click on "ChatGPT"
5. Expect redirected page to load successfully (Got error status code 431 Request Header Fields Too Large)

## Screenshots
Image

Image

## Possible fixes
- Limit URL length to 7500 characters, and if exceeds, ask user to copy paste, and redirect to chatgpt.com without querystring.
- Seed ChatGPT with copied text, and button to redirect to processed ChatGPT Share Link URL (e.g. `chatgpt.com/c/`)
- etc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.