jaredhendrickson13 / pfsense-api

The missing REST and GraphQL API package for pfSense
https://pfrest.org/
Apache License 2.0
689 stars 106 forks source link

pfsense-api environment crash can still submit a post but the gui can't see the result #447

Open ouyoung33 opened 8 months ago

ouyoung33 commented 8 months ago

My colleague through the pfsense API to submit article about 1.1 million aliases to until after the firewall, the firewall ERROR: "/ API/v1 / firewall/alias/index. The PHP: New alert found: PHP ERROR: Type: Then add any aliase to the firewall again, and the request will appear successful, but from the perspective of the gui, it is not generated at all. Then I uninstall the api and reinstall the api and the problem is not solved

The attached.txt is the instruction they submit image ![Uploading 企业微信截图_17102125988486.png…]() response_1710212289247.txt

ouyoung33 commented 8 months ago

Screenshot of an error message image

jaredhendrickson13 commented 7 months ago

This error is coming from pfSense itself. After your API call, pfSense detects a problem with your config, but an error is thrown while pfSense is attempting to restore the previous config. Your configuration is in a bad state. You can try to look at the bad config in /conf/config.xml.bad after you get the error and see if there is anything obviously wrong. It's also possible your configuration has just become too large for pfSense/PHP to read on your system.