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

[Bug] Cannot upload or generate images #5224

Closed
sysoppl opened this issue Aug 7, 2024 · 4 comments
Closed

[Bug] Cannot upload or generate images #5224

sysoppl opened this issue Aug 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sysoppl
Copy link

sysoppl commented Aug 7, 2024

📦 Deployment Method

Docker

📌 Version

2.14.1

💻 Operating System

Ubuntu

📌 System Version

22.04 LTS

🌐 Browser

Chrome

📌 Browser Version

127.0.6533.89

🐛 Bug Description

When I'm trying to upload photo using gpt4o or generate one using dalle3 i got this error:

{
    "error": true,
    "msg": "you are not allowed to request upload"
}

I cleared any app data without any success

📷 Recurrence Steps

  1. Start docker with this config:
version: "3.9"
services:
  chatgpt-next-web-proxy:
    container_name: chatgpt-next-web-proxy
    image: yidadaa/chatgpt-next-web
    ports:
      - 5173:3000
    environment:
      - CODE=1234
      - CUSTOM_MODELS=-all,+gpt-4o,-gpt-4o@azure=gpt4o(Azure),+gpt-4o-mini,-gpt-4o-mini@azure=gpt-4o-mini(Azure),+dall-e-3
      - OPENAI_API_KEY=xxxx
      - HIDE_USER_API_KEY=1
  1. Open URL
  2. Select model
  3. Upload photo or send prompt to generate one
  4. Errors in console
    image

🚦 Expected Behavior

Be able to upload images to cache

📝 Additional Information

I'm using cloudflare proxy (DNS), VPN and Nginx Proxy Manager to expose site to the world.
Uploading was working few weeks ago.

@sysoppl sysoppl added the bug Something isn't working label Aug 7, 2024
@DirkSchlossmacher
Copy link

I continue to have exceptions using the dalle3 model (every single time) like:
"Uncaught (in promise) DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'chat-next-web-store' exceeded the quota."

I get this even after clearing all stite data with the web-inspector in chrome, and after manually deleting items from browser storage for the app

@lloydzhou
Copy link
Contributor

@sysoppl

we register service worker, to mock upload API, save image to CacheStorage

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/public/serviceWorker.js#L56

you get 403 error message in console, you can check you serviceWorker setting in dev panel

do not check "bypass for network"

image

@sysoppl
Copy link
Author

sysoppl commented Aug 8, 2024

Hi
I forgot to include that. Looks like service worker is working, but there is no network requests

Sometimes it looks like this
image

And sometimes it has client:
image

Also, I was able to get it work somehow (restarted docker few times + incognito mode) but after tab refresh it goes again with 403 errors.

When I was able to upload image for gpt4o this was the console output:
image

Some data also shows up in cache storage
image

Aaand after refresh the page i got 403 again (cache storage is still there with all data)

GET https://xxx.xxx.pl/api/cache/InUhoBO49JHHcO88aMl-3.png 403 (Forbidden)

@sysoppl
Copy link
Author

sysoppl commented Oct 9, 2024

It just started working after update, or maybe cache issue.

@sysoppl sysoppl closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants