projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.53k stars 822 forks source link

Getting "Could not open/create output file 'filtered_error_page.json" #1821

Closed dogancanbakir closed 1 month ago

dogancanbakir commented 2 months ago

Is there a way to change the HTTPX temp directory, running lambda got "Could not open/create output file 'filtered_error_page.json'" I'm using -fep option.

posted at https://discord.com/channels/695645237418131507/716605549923270717/1260636102734250157

hoacks commented 2 months ago

Here the details, try to run httpx from a aws lambda, but as you may know, you only have write access to a tmp/ folder, when trying to run the -fep option, httpx tries to create the filtered_error_page.json file but failed because can't write to disk. In the mean time i'm filter with regex but doing it manually case by case. Would be very usefull to change specify the temp folder and use the -fep option to do this automatically. Thanks, you rock!

ehsandeep commented 1 month ago

@hoacks this is fixed in latest release - https://github.com/projectdiscovery/httpx/releases/tag/v1.6.7

Now you can specify custom file path for error file.