net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only

前端 未结 12 1353
甜味超标
甜味超标 2020-11-28 13:57

I\'ve been getting this error when loading certain pages:

net::ERR_INCOMPLETE_CHUNKED_ENCODING 

These pages don\'t do anything special and

12条回答
  •  攒了一身酷
    2020-11-28 14:38

    This error comes, if you have relationship among domain objects or model object which you are returning back to Jquery. Please annotate with @JsonBackReference, your issue will be resolved

    @ManyToOne(fetch = FetchType.LAZY,cascade=CascadeType.ALL)
    @JoinColumn(name = "parentId", nullable = false)
    @JsonBackReference
    public Parent getParent() {
        return this.parent;
    }
    
    @OneToMany(cascade=CascadeType.ALLfetch =FetchType.LAZY,mappedBy=      
    "parent")
    @JsonBackReference
    public Set getChild() {
       return this.child;
    }
    

提交回复
热议问题