Can't create a new project with locally built Frontend and API in Docker container. #2027

Closed
opened 2023-03-20 15:38:55 +00:00 by primeapple · 2 comments

Description

  1. Start Backend with docker run -p 3456:3456 vikunja/api (make sure the image is the latest by running docker pull vikunja/api before)
  2. Build Frontend from source, serve with pnpm run serve
  3. Make new account on the frontend, it doesn't seem to verify the mail, so this looks fine.
  4. Create new project (either by New Project button) or on the sidebar below your namespace.
  5. Enter title, don't use color, press Create (Erstellen) in german.

--> Little error pops up in bottom left, saying:

Fehler
Not Found

The browser devtools say say:

The specified value "" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

PUT http://localhost:3456/api/v1/namespaces/1/projects 404 (Not Found)

{
    "message": "Request failed with status code 404",
    "name": "AxiosError",
    "stack": "AxiosError: Request failed with status code 404\n    at settle (http://127.0.0.1:4173/node_modules/.vite/deps/axios.js?v=39ac1449:1186:12)\n    at XMLHttpRequest.onloadend (http://127.0.0.1:4173/node_modules/.vite/deps/axios.js?v=39ac1449:1410:7)",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "adapter": [
            "xhr",
            "http"
        ],
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/json",
            "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRAdC5jb20iLCJlbWFpbFJlbWluZGVyc0VuYWJsZWQiOmZhbHNlLCJleHAiOjE2Nzk1ODU4MjIsImlkIjoxLCJpc0xvY2FsVXNlciI6dHJ1ZSwibG9uZyI6ZmFsc2UsIm5hbWUiOiIiLCJ0eXBlIjoxLCJ1c2VybmFtZSI6InQifQ.85tpW-kO42HhJHMD178I80XbWQTYV7MZQy8l-Km3ttk"
        },
        "baseURL": "http://localhost:3456/api/v1",
        "method": "put",
        "url": "/namespaces/1/projects",
        "data": "{\"max_right\":null,\"id\":0,\"title\":\"tesas\",\"description\":\"\",\"owner\":{\"max_right\":null,\"id\":0,\"email\":\"\",\"username\":\"\",\"name\":\"\",\"exp\":0,\"type\":0,\"created\":null,\"updated\":null,\"settings\":{\"max_right\":null,\"name\":\"\",\"email_reminders_enabled\":true,\"discoverable_by_name\":false,\"discoverable_by_email\":false,\"overdue_tasks_reminders_enabled\":true,\"week_start\":0,\"timezone\":\"\",\"language\":\"de-DE\"}},\"tasks\":[],\"namespace_id\":1,\"is_archived\":false,\"hex_color\":\"\",\"identifier\":\"\",\"background_information\":null,\"is_favorite\":false,\"subscription\":null,\"position\":0,\"background_blur_hash\":\"\",\"created\":\"1970-01-01T00:00:00.000Z\",\"updated\":\"1970-01-01T00:00:00.000Z\"}"
    },
    "code": "ERR_BAD_REQUEST",
    "status": 404
}

Vikunja Frontend Version

36fd0dee

Vikunja API Version

ImageID: 50535414fb3c
(build 8 days ago, should be this: https://hub.docker.com/layers/vikunja/api/latest/images/sha256-5aa164b8e3a3e9a28c230c2cc19ab9a286004eece6412ada4cbe98e2a933f464?context=explore

Browser and version

Chromium

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description 1. Start Backend with `docker run -p 3456:3456 vikunja/api` (make sure the image is the latest by running `docker pull vikunja/api` before) 2. Build Frontend from source, serve with `pnpm run serve` 3. Make new account on the frontend, it doesn't seem to verify the mail, so this looks fine. 4. Create new project (either by `New Project` button) or on the sidebar below your namespace. 5. Enter title, don't use color, press `Create` (`Erstellen`) in german. --> Little error pops up in bottom left, saying: ``` Fehler Not Found ``` The browser devtools say say: ``` The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. PUT http://localhost:3456/api/v1/namespaces/1/projects 404 (Not Found) { "message": "Request failed with status code 404", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 404\n at settle (http://127.0.0.1:4173/node_modules/.vite/deps/axios.js?v=39ac1449:1186:12)\n at XMLHttpRequest.onloadend (http://127.0.0.1:4173/node_modules/.vite/deps/axios.js?v=39ac1449:1410:7)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/json", "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRAdC5jb20iLCJlbWFpbFJlbWluZGVyc0VuYWJsZWQiOmZhbHNlLCJleHAiOjE2Nzk1ODU4MjIsImlkIjoxLCJpc0xvY2FsVXNlciI6dHJ1ZSwibG9uZyI6ZmFsc2UsIm5hbWUiOiIiLCJ0eXBlIjoxLCJ1c2VybmFtZSI6InQifQ.85tpW-kO42HhJHMD178I80XbWQTYV7MZQy8l-Km3ttk" }, "baseURL": "http://localhost:3456/api/v1", "method": "put", "url": "/namespaces/1/projects", "data": "{\"max_right\":null,\"id\":0,\"title\":\"tesas\",\"description\":\"\",\"owner\":{\"max_right\":null,\"id\":0,\"email\":\"\",\"username\":\"\",\"name\":\"\",\"exp\":0,\"type\":0,\"created\":null,\"updated\":null,\"settings\":{\"max_right\":null,\"name\":\"\",\"email_reminders_enabled\":true,\"discoverable_by_name\":false,\"discoverable_by_email\":false,\"overdue_tasks_reminders_enabled\":true,\"week_start\":0,\"timezone\":\"\",\"language\":\"de-DE\"}},\"tasks\":[],\"namespace_id\":1,\"is_archived\":false,\"hex_color\":\"\",\"identifier\":\"\",\"background_information\":null,\"is_favorite\":false,\"subscription\":null,\"position\":0,\"background_blur_hash\":\"\",\"created\":\"1970-01-01T00:00:00.000Z\",\"updated\":\"1970-01-01T00:00:00.000Z\"}" }, "code": "ERR_BAD_REQUEST", "status": 404 } ``` ### Vikunja Frontend Version 36fd0dee ### Vikunja API Version ImageID: 50535414fb3c (build 8 days ago, should be this: https://hub.docker.com/layers/vikunja/api/latest/images/sha256-5aa164b8e3a3e9a28c230c2cc19ab9a286004eece6412ada4cbe98e2a933f464?context=explore ### Browser and version Chromium ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
primeapple added the
kind/bug
label 2023-03-20 15:38:55 +00:00
Owner

Are you using the latest or unstable image? latest is the last release which does not contain the projects changes yet.

Are you using the latest or unstable image? latest is the last release which does not contain the projects changes yet.
Author

It works with the unstable image.
Thank you for your help :)

It works with the `unstable` image. Thank you for your help :)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2027
No description provided.