Skip to content

Conversation

@dav-m85
Copy link

@dav-m85 dav-m85 commented Mar 11, 2025

Description

Since files are selected and not enabled, the current code produces an "Error generating code snippet" error when one is set while exporting a snippet.

Screenshot from 2025-03-11 22-36-24

Screenshot from 2025-03-11 22-36-44

httpsnippet does not directly support --data "@..." when being passed filepath, so we need to trick it with a formated "text" parameter.

Add the error being sent by httpsnippet to the UI, so that other issues can be easier debugged.

Related to #1584.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Since files are selected and not enabled, the current code produces an
"Error generating code snippet" error when one is set while exporting
a snippet.

httpsnippet does not directly support --data "@..." when being passed
filepath, so we need to trick it with a formated "text" parameter.

Add the error being sent by httpsnippet to the UI, so that other
issues can be easier debugged.
@maintainer-bruno
Copy link
Contributor

Hey @dav-m85,
Thanks so much for your efforts to make Bruno better.
Unfortunately, we have to close this PR because the same fix has already been delivered through another PR.
Really appreciate your contribution and hope you’ll continue collaborating with us on future improvements. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants