添加API App时API管理失败 [英] API Management Fails while adding API App

查看:115
本文介绍了添加API App时API管理失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经在Azure上做了几个月的概念验证工作,并且我已经能够通过App Services部署API应用程序了然后通过Azure API管理功能管理它们。

I've been doing some proof of concept work with Azure for a couple of months and I've been able to deploy API apps via App Services and then manage them via Azure API Management functionality.

我的API管理服务中添加了两个API; 'Demo Conference API'和我自己的自定义API("my-big-api")。一切正常。

I have two API's added to my API Management Service; the 'Demo Conference API' and my own custom API ("my-big-api"). That all works fine.

然而,当尝试添加第三个API作为API应用程序时,我会看到对我无益的错误消息(可能是由于我对该技术的新见解) 。以下是尝试将我的第三个API添加到我的API Management
服务时的初始错误:

However while attempting to add a 3rd API as an API App I'm presented with error messages that are unhelpful to me (perhaps due to my newness with the technology). Here's what the initial error looks like while attempting to add my 3rd API to my API Management service:


  • 无法使用与'my-big-api'相同的Path''创建API'my-big-api-aux',除非它是同一版本集的一部分

奇怪的是,在我选择我的API应用程序后,所有字段都会自动填充 - 然后它会告诉我有不正确的值。

Curiously, all of the fields get auto-populated after i select my API App - and then it tells me there are incorrect values.

这也导致建议使用"API URL后缀"。所以我遵守。我添加了一个后缀(我在这里尝试了很多值,结果相同),新的,不太有用的错误是:

This also results in a suggestion to use an "API URL suffix". So I comply. I add a suffix (I tried many values here, same result) and the new, and less helpful error, is:

" 无法创建API。请稍后再试。"

"Could not create an API. Please try again later."

稍后再试一次?什么样的魔术8球错误是什么?但同样,我遵守。我稍后再试,我得到同样的错误。

Try again later? What kind of magic 8-ball error is that? But again, i comply. I try again later, and I get the same error.

1。我在swagger.io上检查了我的招摇,这是有效的。 

1. I've checked my swagger on swagger.io, it's valid. 

2。 API可以从App Services界面正常工作。

2. The API works fine from the App Services interface.

3。我确实有' my-big-api'的版本,但这有什么关系?类似名称导致问题?

3. I do have versions on 'my-big-api', but how is that related? Similar name causing an issue?

4。 'my-big-api'添加了没有API网址后缀。 

4. 'my-big-api' was added with no API URL Suffix. 

我确定我错过了一些东西,但我花了足够的时间搜索谷歌。有人能指出我正确的方向吗?

I'm sure I've missed something, but I've spent enough time searching google. Can someone point me in the right direction?

谢谢

推荐答案

关于"API URL后缀"的第一个错误预期。

The first error about the "API URL Suffix" is expected.

OpenAPI规范doc仅用于填充字段并稍后创建操作。点击"创建"后,会对这些字段以及未填写的其他字段进行验证。

The OpenAPI specification doc is just used to populate the fields and create the operations later on. The validation is run for these fields and the others that aren't filled after you hit "Create".

至于您现在看到的错误,您是否可以分享swagger doc你在尝试?

As for the error you are seeing now, could you share the swagger doc that you are trying?


这篇关于添加API App时API管理失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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