简体   繁体   English

APIC 2018.3.7 OVA:API的Assembly部分尚未部署-已还原到更早的版本吗?

[英]APIC 2018.3.7 OVA: The Assembly part of API is not being deployed - has reverted to a much earlier version?

As of yesterday, when I publish the (current) Product and its API, the deployed Assembly is not updated and what is running is from an earlier state - most likely from early December. 截至昨天,当我发布(当前)产品及其API时,已部署的Assembly尚未更新,运行的是早期状态-最有可能是从12月初开始。 The APIC domain was created at the end of Nov, so what I is deployed could even be the initial deployment. APIC域是在11月底创建的,因此我所部署的甚至可以是初始部署。

As a test, I changed the API's description (add 'XXX') and changed a Gateway script to add XXX to a 'console.warn' at the start of the Assembly. 作为测试,我更改了API的描述(添加了“ XXX”),并更改了Gateway脚本,以在程序集开始时将XXX添加到“ console.warn”。 The description change can be seen in Portal, but there is no 'XXX' visible in the DP log. 可以在Portal中看到描述更改,但在DP日志中看不到“ XXX”。 I set DP log level to 'debug', but none of the 'tracing' statements added in Dec can be seen. 我将DP日志级别设置为“调试”,但是看不到12月添加的“跟踪”语句。

Does anyone have any ideas as to how I can resolve this? 有人对我该如何解决有任何想法吗? Or, how can I see the API's deployed code? 或者,如何查看API的已部署代码? I've looked in the DP File Management, but everything is dated at then end of Nov. 我查看过DP文件管理,但是所有内容都注明于11月底。

[EDIT] [编辑]

Catalogs are in Dev mode, so I change and publish using same version. 目录处于开发模式,因此我使用相同的版本进行更改和发布。 I have just done a series of tests using the api referred to above (VAT-Num-Check) (which is our first 'real' api) and an older trivial one that just divides two numbers. 我刚刚使用上述api(VAT-Num-Check)(这是我们的第一个“真实” api)和一个较旧的琐事(仅将两个数字相除)进行了一系列测试。 The Sandbox catalog is associated with the DEV gateway, and the SIT catalog, with the SIT gateway. 沙盒目录与DEV网关关联,而SIT目录与SIT网关关联。

The other kind of corruption is, after deploying a new api, calling it results in 404 'No resources match requested URI'. 另一种损坏是,在部署新的api之后,调用它会导致404“没有资源与请求的URI匹配”。

My conclusions are: 我的结论是:

Something has broken in Mgmt server and/or DP APiC Gateway. Mgmt服务器和/或DP APiC网关发生了故障。 Once code has been deployed to DP, it can't be changed or deleted. 将代码部署到DP后,将无法更改或删除。 Changes in Portal are correct. Portal中的更改是正确的。

The possible exception is that the deployment of the VAT-Num-check API appears to have reverted to an earlier version after a CLI publish to the SIT Gateway this morning. 可能的例外是,在今天早晨CLI发布到SIT网关之后,VAT-Num-check API的部署似乎已恢复为早期版本。

[/EDIT] [/编辑]

Background: 背景:

I have been creating a Windows script to publish draft Product/APIs and then run Postman tests. 我一直在创建Windows脚本来发布产品草案/ API,然后运行邮递员测试。 This means that I have been performing a lot of publish actions to DP (V5 type). 这意味着我一直在对DP(V5类型)执行许多发布操作。 On Monday evening, in my last run, the Postman tests all worked. 在我最后一次运行的星期一晚上,邮递员测试了所有工作。 Yesterday morning, some failed. 昨天早上,有些失败了。

Back in early Dec, I made a change so that all JSON error messages in user responses used error as the 'prefix' to the message contents. 早在12月初,我就进行了更改,以便用户响应中的所有JSON错误消息都将error用作消息内容的“前缀”。 Before that, some used message and some used reply . 在此之前,一些使用过的消息和一些使用过的回复 The reason for the failures is error messages have reverted to using the earlier 'prefix'. 失败的原因是错误消息已还原为使用较早的“前缀”。

API Connect 2018.3.7 went out of support on November 15, 2018. You'd need to upgrade to 2018.4.1.x, which will be supported for a longer term. API Connect 2018.3.7于2018年11月15日停止支持。您需要升级到2018.4.1.x,这将得到长期支持。

If you still have the issue at that point, then please open a support ticket for further investigation. 如果此时仍然存在问题,请打开支持通知单以进行进一步调查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM