无法解析 AMF 模型。

huangapple go评论51阅读模式
英文:

Unable to parse AMF model

问题

在使用Anypoint Studio运行Mulesoft应用程序时出现错误 - 运行应用程序后,在Studio中点击控制台按钮会打开浏览器并抛出错误"无法解析AMF模型"。

在此处找到了潜在的解决方法:
https://help.mulesoft.com/s/article/Unable-to-parse-AMF-model-error-with-APIKit-Console

但我不知道如何在Anypoint Studio中找到这些选项,尝试查看它们是否可以解决我的问题。

我在Windows和Mac上都遇到了相同的错误。

英文:

Get error when running Mulesoft app from Anypoint Studio - run the app, clicking console button in Studio opens browser and throws error "Unable to parse AMF model."

Found potential resolution here:
https://help.mulesoft.com/s/article/Unable-to-parse-AMF-model-error-with-APIKit-Console

But I do not know how to get to these option in Anypoint Studio to try and see if they resolve the issue for me.

I get the same error on both Windows and Mac.

答案1

得分: 1

这是路由器配置的问题,上面MuleSoft分享的解决方法不起作用。从Exchange拉取API时,路由器出现了问题。如果你在IDE中查看"Message Flow"旁边的"Global Elements"选项卡,你应该会看到一个名为"Router"的条目。几乎就好像路由器不存在,所以我点击了"Create"按钮。一旦它出现了并且我可以编辑它,我选择了保留 RAML/OAS 基本 URI 的选项,并将解析器选项设置为自动。这为我解决了问题。

英文:

This was an issue with the router config and the solution shared above from MuleSoft did not work. When pulling an API down from Exchange there was something wrong with the Router. If you are look at the Global Elements tab next to Message Flow in the IDE you should see an entry there for Router. It was almost as if the router didn't exist so I clicked the Create button. Once it was there and I could edit it I selected the option to Keep RAML/OAS base URI and to set the Parser option to AUTO. This resolved the issue for me.

huangapple
  • 本文由 发表于 2023年2月24日 05:42:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/75550614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定