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

Upload image - HTTP 405 (Method not allowed) #157

Open
Necronum opened this issue Apr 22, 2024 · 0 comments
Open

Upload image - HTTP 405 (Method not allowed) #157

Necronum opened this issue Apr 22, 2024 · 0 comments

Comments

@Necronum
Copy link

Thumbor request URL

[POST]
example.com/cdn/image
Both methods from documentation:

  • data-binary
  • form

Expected behaviour

Upload image to file system for further usage.

Actual behaviour

When sending request via postman I get
<html><title>405: Method Not Allowed</title><body>405: Method Not Allowed</body></html>
When checking kuberenetes logs:
tornado.access:WARNING 405 POST /image (10.42.0.1) 2.25ms

Other functionality works (healthcheck, unsafe/image etc.)

Operating system

Ubuntu, k3s, nginx
Thumbor version: latest version of MinimalCompact from ghcr

Your thumbor.conf

I use yaml with environmental variables. If needed I can provide whole yaml for inspection.

      VIRTUAL_HOST:                        example.com
      THUMBOR_PORT:                        80
      ACCESS_CONTROL_ALLOW_ORIGIN_HEADER:  *
      ALLOW_UNSAFE_URL:                    true
      AUTO_WEBP:                           true
      SECURITY_KEY:                        ############
      THUMBOR_NUM_PROCESSES:               2
      FILE_STORAGE_ROOT_PATH:              /home/thumbor/storage
      RESPECT_ORIENTATION:                 true
      UPLOAD_ENABLED:                      true
      UPLOAD_MAX_SIZE:                     10485760
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

1 participant