bugy / script-server

Web UI for your scripts with execution management
Other
1.55k stars 246 forks source link

Script behaves differently between working server and localhost #595

Closed Beinish closed 1 year ago

Beinish commented 1 year ago

This issue is pretty niche, but hopefully I'll find an answer here. I have a server which runs script-server - I'm not sure how to check the version, but I couldn't find the .version file in the script-server folder. On my own laptop, I run 1.18.0-master@cceaa0c.

I have a script which generates an S3 PreSigned URL and sends it in an email. It is configured the same on both instances ("prod" and my laptop). The script has the same runner, same parameters, same everything on both instances.

When I run the script from my laptop, here is the result of that URL: https://i.imgur.com/qeyhH6k.png When I run it from my "prod" server, here is the result: https://i.imgur.com/ZB4oaBv.png As you can see, in the second email, the link is broken. This is due to a break-line somewhere after 975 chars or so. It's consistent no matter what function I use to send email. I also tried different SMTP servers, fixing all sorts of Jinja related issues, but it clear to me that none of those are the issue.

Is it possible script-server in different versions can cause this? If so, where do I start to look for a possible fix?

Thanks :)

bugy commented 1 year ago

Hi @Beinish did you try to execute this script manually on the machines? (outside of script server) What is the result?

Beinish commented 1 year ago

Thanks for the fast response @bugy, I haven't thought about running it locally, which indeed yields the same result. I guess it means it has nothing to do with the script server. I will look for another angle.

Thank you!