PHP ERROR using /api/v2/services/dhcp_server/static_mapping #616
Unanswered
couraillon
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I have not seen this particular issue before. Roughly how many DHCP servers and static mappings exist in your config currently and how many requests per second are you making to the API? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using pfSense v24.03 and the pfsense-api v2.2.2 to remove and add some static_mappings.
My script should read two lists of MAC addresses, those to be removed from static_mappings and those to be added.
The script first checks whether each MAC address is already registered, and that part works well. But then when it comes to delete all the MAC addresses I get the following error:
PHP ERROR: Type: 1, File: /usr/local/pkg/RESTAPI/Core/Model.inc, Line: 2289, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8192 bytes) @ 2024-12-13 11:49:24
I have read this discussion, but the error still seems to exist on my side, despite the patch.
Is this a known error when there are too many queries in a row?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions