要在 postman 上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数

编程入门 行业动态 更新时间:2024-10-25 00:32:41
本文介绍了要在 postman 上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个在终端上成功运行的 curl 链接,但我想将其转换为 POSTMAN 请求,其中链接是,

I have a curl link which is successfully run with terminal but i want to convert it as a POSTMAN request where link is,

curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X GET -u <registry-user>:<registry-password> sc-docker-registry.eic.fullstream.ai/v2/<image-name>/manifests/<tag> 2>&1 --insecure | grep Docker-Content-Digest | awk '{print ($3)}'

我已设置标头和身份验证,但无法设置 2>&1 --insecure |grep Docker-Content-Digest |awk '{print ($3)}'

I have set header and auth but unable to set 2>&1 --insecure | grep Docker-Content-Digest | awk '{print ($3)}'

我在哪里设置 2>&1 --insecure |grep Docker-Content-Digest |awk '{print ($3)}' 邮递员命令

Where do I set 2>&1 --insecure | grep Docker-Content-Digest | awk '{print ($3)}' command in postman

推荐答案

我遇到了同样的错误,我认为这与您在 curl 结束时发送的管道参数无关.将 url 部分括在双引号中对我的情况有所帮助.看起来它是 curl-to-postman 库

I had the same error and I think it's unrelated to the pipeline arguments you sent at the end of the curl. Enclosing url part into double quotes helped with my case. Looks like its a bug in curl-to-postman library

更多推荐

要在 postman 上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数

本文发布于:2023-10-29 04:05:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538674.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:要在   函数   出现错误   命令   postman

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!