dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

"Cannot read properties of null" error when editing traefik env

Open lwndp opened this issue 1 year ago • 4 comments

To Reproduce

  1. Click "Web Server"
  2. Click "Traefik" > "Modify Environment"
  3. Add the following: Image
  4. Click "Update"

Current vs. Expected behavior

Current: Error "Cannot read properties of null (reading 'forEach')" Expected: No error when updating environment

Provide environment information

6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64 GNU/Linux

dokploy v0.24.12

Which area(s) are affected? (Select all that apply)

Traefik

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

lwndp avatar Sep 02 '25 12:09 lwndp

Hey I couldn't reproduce the issue, can you try in the latest version?

https://github.com/user-attachments/assets/0b19c3e7-bc11-4661-b003-cd4cfa2287bf

Siumauricio avatar Oct 05 '25 03:10 Siumauricio

Hey, thanks for checking! I'll try with the newest version. However, aren't you getting an error too, though?

lwndp avatar Oct 05 '25 09:10 lwndp

is not the same error, the error are you seeing is because we reloaded traefik so we lost the connection between the domain we are connected and cloudflare(in my case) so that's the reason of the error, is a different error than yours

Siumauricio avatar Nov 26 '25 07:11 Siumauricio

I haven't seen anyone else report this error in recent versions of dokploy. We've also made several changes to this, so I believe it's resolved. I'll close this thread; if you're still having the problem, we can reopen it.

Siumauricio avatar Dec 03 '25 16:12 Siumauricio