Reaching form size limit posting a bundle containing multiple resources

445 views
Skip to first unread message

ruudzon...@gmail.com

unread,
Oct 2, 2019, 8:35:33 AM10/2/19
to HAPI FHIR
Hey everyone,

I'm trying to familiarize myself with FHIR by using the Smart on FHIR sandbox and I just generated a set of test data using Synthea. When I try to add a bundle using the Transaction action in the browser I get an error:

java.lang.IllegalStateException: Form too large: 1299243 > 200000

Trimming this bundle will allow it to be imported successfully however. Is this a setting I can change somewhere within HAPI or should I look elsewhere? Thanks!

James Agnew

unread,
Oct 2, 2019, 8:58:59 AM10/2/19
to ruudzon...@gmail.com, HAPI FHIR
This likely means that the server is configured to deny request payloads beyond a certain size, which is not uncommon for public endpoints in order to prevent abuse.

It might be worth trying to do this using a REST tool such as insomnia instead of using a browser-based tester, or hosting your own local FHIR server, ie with https://github.com/hapifhir/hapi-fhir-jpaserver-starter

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/556b89d8-fad4-4c8f-998a-5792cae8ce30%40googlegroups.com.

ruudzon...@gmail.com

unread,
Oct 2, 2019, 9:48:12 AM10/2/19
to HAPI FHIR
Hey James, thanks for the quick reply!

Yeah, passing the data using Postman works except for some Unknown codes errors, but I'll figure that out. I'll just use Postman then :) Thanks again!

On Wednesday, October 2, 2019 at 2:58:59 PM UTC+2, James Agnew wrote:
This likely means that the server is configured to deny request payloads beyond a certain size, which is not uncommon for public endpoints in order to prevent abuse.

It might be worth trying to do this using a REST tool such as insomnia instead of using a browser-based tester, or hosting your own local FHIR server, ie with https://github.com/hapifhir/hapi-fhir-jpaserver-starter

Cheers,
James

On Wed, Oct 2, 2019 at 8:35 AM <ruudzon...@gmail.com> wrote:
Hey everyone,

I'm trying to familiarize myself with FHIR by using the Smart on FHIR sandbox and I just generated a set of test data using Synthea. When I try to add a bundle using the Transaction action in the browser I get an error:

java.lang.IllegalStateException: Form too large: 1299243 > 200000

Trimming this bundle will allow it to be imported successfully however. Is this a setting I can change somewhere within HAPI or should I look elsewhere? Thanks!

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi...@googlegroups.com.

ruudzon...@gmail.com

unread,
Oct 2, 2019, 9:49:37 AM10/2/19
to HAPI FHIR
Oh got it, R4/STU4 version problem :)
Reply all
Reply to author
Forward
0 new messages