You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
验证官方文档提供的自定义运维特征里执行-http-request(https://kubevela.io/zh/docs/platform-engineers/traits/advanced#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%BF%90%E7%BB%B4%E7%89%B9%E5%BE%81%E9%87%8C%E6%89%A7%E8%A1%8C-http-request)。
验证发现,Trait里面的http请求正常返回,但是当返回内容中token的value为null时,dry-run就会报错。Trait定义如下:
验证的demo:
demo会调用在线的mock接口,接口返回内容:
报错信息如下:
当mock接口返回内容中token的值为字符串时,dry-run正常。这个是看起来是json解析null的问题,有什么解决办法吗?
Beta Was this translation helpful? Give feedback.
All reactions