Skip to content

Avoid printing long Tenderly URLs#44

Merged
anikaraghu merged 1 commit intomainfrom
michael/tenderly-url-length
Aug 24, 2023
Merged

Avoid printing long Tenderly URLs#44
anikaraghu merged 1 commit intomainfrom
michael/tenderly-url-length

Conversation

@mdehoog
Copy link

@mdehoog mdehoog commented Aug 24, 2023

Tenderly's nginx has a URI limit of somewhere just over 8000 characters. This PR removes the rawFunctionInput query parameter if the URI is too long, and instead prints it separately for the user to copy/paste.

@mdehoog mdehoog force-pushed the michael/tenderly-url-length branch from 6147203 to 47244bc Compare August 24, 2023 01:35
);

console.log(str);
if (bytes(str).length + _data.length * 2 > 7980) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7980 == 8000 - "&rawFunctionInput=0x".length

@anikaraghu anikaraghu merged commit 55b9daf into main Aug 24, 2023
@anikaraghu anikaraghu deleted the michael/tenderly-url-length branch August 24, 2023 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants