US-GHG-Center / veda-config-ghg

Veda config for GHG
https://ghg-demo.netlify.app
Other
3 stars 14 forks source link

[E & A] Statistics URL too long for cloudfront #401

Open slesaad opened 3 weeks ago

slesaad commented 3 weeks ago

Description

Cloudfront doesn't support url length longer than 8,192 bytes.

During some of our statistics (with complex aois) the URL length exceeds the limit. See example here

This doesn't stop the analysis from working (because the navigation is happening within the react app), but when we open that link in a new tab or refresh the page, cloudfront throws a 413 payload too large error.

We might need to figure out a better way to do this.

j08lue commented 2 weeks ago

We have discussed URL length limitations and UI state sharing a couple of times in the past:

We also discussed different options, among others some kind of service that persists and retrieves UI state by some shareable URL.

This doesn't stop the analysis from working (because the navigation is happening within the react app)

Since that is the case, I think it would be ideal not to invest a ton in solving this for now, but give users a more descriptive error message and record when/if it happens, if possible.