-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Resulting JSON is truncated" error with Pode and Pode.Web for API and WEB UI #639
Comments
Also, I just found that
is now
One additional difference is that there are no further exceptions in the console, just the |
I think I may have found where this issue is caused. I've narrowed it down to one of the elements with [edit] What is the advice here? Is this a bug? I don't want to go manually manipulating |
Describe the Bug
Similar to #605. When combining Pode.Web with Pode to provide API and Web Front-End, I get:
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 10.
Then the
state.json
is empty.If I remove all
Add-PodeWebPage
calls, I do not get this error.Steps To Reproduce
The Services web page is just for testing purposes and was copied from the Pode.Web documentation, here.
I then issue the following POST to the
/api/jobs/checkOut
:This is then displayed on the Pode server console:
Prefacing the
Save-PodeState
call in theAdd-PodeRoute
with$null =
or even piping toOut-Null
, the error continues. Removing theAdd-PodeWebPage
code I don't get the error at all.Here is
state.json
:Expected Behavior
I'm trying to implement an API service, and a web UI front end to show the data from the
$state:CurrentJobs
variable, and need to save its state across restarts.Platform
Windows Server 2016 (10.0.14393.7428)
2.11.1
0.8.3
7.4.5
The text was updated successfully, but these errors were encountered: