使用curl将源映射上载到getsentry失败

使用curl将源映射上载到getsentry失败,curl,file-upload,sentry,Curl,File Upload,Sentry,卷曲https://app.getsentry.com/api/0/projects/instawork/production/releases/:version/files/ -u[:api_key]:-X POST-F file=@webpack.js.map-F name=”https://www.instawork.com/static/js/webpack.js.map" 我遇到以下错误:$curl:(26)无法打开文件“webpack.js.map”这已在链接的GitHub问题中得


卷曲https://app.getsentry.com/api/0/projects/instawork/production/releases/:version/files/ -u[:api_key]:-X POST-F file=@webpack.js.map-F name=”https://www.instawork.com/static/js/webpack.js.map"


我遇到以下错误:$curl:(26)无法打开文件“webpack.js.map”

这已在链接的GitHub问题中得到解决-您的用户可能没有对“webpack.js.map”文件的读取权限。

我在这里犯了两个错误:

  • 从本地文件系统上载时,
    
    -F文件=@“aaa/xxxx.map”
    
    “aaa”必须是我想要上传的文件的完整路径。例如,Users/name/mydir/

  • 如@ehfeng所述。还需要确保我得到许可