要在 postman 上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数 [英] To run curl command on postman getting error as Error while importing Curl: arg.startsWith is not a function

查看:530
本文介绍了要在 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> https://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 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆