Closed albert-dabrowski closed 1 year ago
Cloud or on-premises?
On-premise, deployed in our own k8s on Tomcat
I imagine this is due to something like the maxPostSize
setting in Apache Tomcat (https://tomcat.apache.org/tomcat-9.0-doc/config/http.html) or the error is coming from something else in your environment (e.g. Nginx https://stackoverflow.com/questions/74806980/413-payload-too-large-error-nginx-ubuntu-22-04).
Hope that helps.
I'm back and exactly as you stated we had a problem on nginx, so once increase the size it works. Thanks a lot. Then this bug is to be closed
Description
I successfully uploaded workspaces to the time when we hit 413 payload too large ` at com.structurizr.api.StructurizrClient.putWorkspace(StructurizrClient.java:420) at com.structurizr.cli.PushCommand.run(PushCommand.java:137) at com.structurizr.cli.StructurizrCliApplication.run(StructurizrCliApplication.java:81) at com.structurizr.cli.StructurizrCliApplication.main(StructurizrCliApplication.java:119) Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)"<!DOCTYPE html>
413 Payload Too Large
"; line: 1, column: 2] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2418) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:749) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:673) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:2082) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:805) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4817) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4723) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3645) at com.structurizr.api.ApiResponse.parse(ApiResponse.java:46) at com.structurizr.api.StructurizrClient.putWorkspace(StructurizrClient.java:414) ... 3 more
Steps to reproduce
Quite big workspace with something around 100-150 containers, deployments, etc. BTW, it's still rendered on Structurizr Lite.
Screenshot
No response
Code sample
No response
Configuration
No response
Severity
Critical
Priority
Medium
Resolution
I have no budget, please fix this for free
More information
For now will not have a time to fix it, but would be forced if there will be no solution