Skip to content

Fix Copy as gRPCurl with template-tag payloads#413

Merged
gschier merged 2 commits into
mainfrom
omnara/mobster-causal
Feb 28, 2026
Merged

Fix Copy as gRPCurl with template-tag payloads#413
gschier merged 2 commits into
mainfrom
omnara/mobster-causal

Conversation

@gschier
Copy link
Copy Markdown
Member

@gschier gschier commented Feb 28, 2026

Summary

  • render gRPC requests with purpose: 'send' in Copy as gRPCurl so template tags are resolved consistently with Copy as Curl
  • stop parsing/compacting gRPC request JSON before building grpcurl -d, and preserve rendered payload as-is
  • add regression coverage for unresolved template tags and update the existing payload formatting expectation

Testing

  • npm run --workspace @yaak/action-copy-grpcurl test

Fixes: https://yaak.app/feedback/posts/copy-as-grpcurl-with-template-tag-plugin

@gschier gschier merged commit da1e04d into main Feb 28, 2026
4 checks passed
@gschier gschier deleted the omnara/mobster-causal branch February 28, 2026 15:39
// Add form params
if (request.message) {
xs.push('-d', `${quote(JSON.stringify(JSON.parse(request.message)))}`);
xs.push('-d', quote(request.message));
Copy link
Copy Markdown
Contributor

@brijsiyag-meesho brijsiyag-meesho Mar 2, 2026

Choose a reason for hiding this comment

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

@gschier grpcurl request is failing due to a TLS handshake error when calling the gRPC endpoint.
The service is running in plaintext mode, but the request is being made without the -plaintext flag. It's working when copied from Postman which does include this flag. Can we make -plaintext default?

hezhizhen pushed a commit to hezhizhen/yaak that referenced this pull request May 15, 2026
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