Rename
Explore posts from serversEF Core 8: System.InvalidOperationException: 'The instance of entity type cannot be tracked..
what I'm saving actually is very simple, at that point just an update of a table's column.
but I need to load all that data because we need to do quite some checks before the save.
the website was initially in .NET 4.6.2, a legacy app and I've been moving it .NET 8 and refactoring along the way
8 replies
EF Core 8: System.InvalidOperationException: 'The instance of entity type cannot be tracked..
yeah actually I was assigning navigation properties as I've got rich domain entities filled with a lot of logic.
I was able to fix it by changing my update method to this:
otherwise I'm guessing it was mistakenly tracking navigation properties and thinking those got modified also.
I guess this gives me more control over what I want changed so I'll likely be keeping it this way.
if anyone happens to have a better idea I'd love to hear it 😅
8 replies
EF Core 8: System.InvalidOperationException: 'The instance of entity type cannot be tracked..
well as far as I can tell I am awaiting properly, from my endpoint I call a commandHandler service which begins like so:
and the GetForWorkWeek method is in the text file (sorry it's a bit long but simple)
8 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
I'm also not sure the headers from the cloudflare request are quite right (Connection close):
I've removed some uneccessary ones
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
I was able to get the logs, I guess it was taking some time for them to show up and this is the data I got now,
notice the 995 sc-win32-status code of the last request
the second and third (last) requests both failed when going through CF with the Bad Gateway error but seems only the third one returned the 995 code which translates to
the website's timeout limit was 120 seconds, even changed it to 300 but got 995 again when time-taken is 10565(ms)
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
they all are HTTP/2 version
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
I'll likely have to compare the requests with Wireshark to see if I can find a difference between the CF forwarded one and the one being sent directly
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
but this also wouldn't explain why it doesn't fail if I access it directly from the server IP right? or is there an explanation for that I'm missing
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
really weird one for sure, considering I don't get any errors or info in Event Viewer, IIS logs or even Sys32/HTTPErr files of the server
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
so you got a partial response then it just ended?
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
huh strange one for sure, I'll see if I can find something out
thank you again
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
let me know if I can be of any help
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
perfect
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
done
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
made a request with that header included just now
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
just gave it a go again right now, with the same url
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
I could retry right now if you're free to look
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
you won't be able to access the page since it'll redirect to the login, but if there's anything other info I could give let me know.
appreciate both your guys help
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
seems I can't create a support ticket with my account so this is the actual URL
(with error: )
tested just now:
https://hippodromecasino.smartrota.com/site/The-Hippodrome-Casino-Ltd/Gaming-Staff/manager-dashboard/occurrence-list?contractOption=All&occurrenceRule=&occurrenceType=&selectedName=&startDate=15%2f04%2f2025&startDateMax=30%2f04%2f2025
54 replies
CDCloudflare Developers
•Created by Rename on 4/15/2025 in #general-help
Issue with CloudFlare response
yep it's only started recently.
it actually happened maybe about 2 weeks ago or more, then it resolved on it's own and now it's back again.
54 replies