Issue with publishing API Product to Bluemix - ibm-cloud

I am using API Connect: v5.0.5.0 (apiconnect: v2.4.11) Developer toolkit on Windows 10. I am able to publish my loopback application to Bluemix successfully from the Developer Toolkit. However, while trying to publish/stage corresponding API Product to my Bluemix API Connect instance from APIC Developer toolkit is getting the following exception.
I would like to know where to find additional message (as indicated in the error )and any tips or suggestion to resolve the issue.

First off, if you're having problems publishing I'd suggest running apic validate against your product file first to see if there are any validation issues.
I grabbed your product/api files from the developer.ibm.com question and did some testing. I found that your path /containers/{container}/download/{file} has two parameters defined as
parameters:
- name: container
in: path
required: false
type: string
- name: file
in: path
required: false
type: string
By no means am I an expert in this space, but I found if I change required: false to required: true validation was successful. Give that a try.

Arindam,
I have seen this issue before. This solved my issue. Scroll down to answer by Peter Szeto.
http://developer.ibm.com/answers/questions/268185/api-designer-cant-publish-loopback-project/?smartspace=api

Related

No trained NLU model found (Actions on Google)

We are developing boot using Actions on google SDK, we migrated our dev project UAT and all of sudden its stoped working. Previously we are using same approach and its working every time. Bot respond once for initial phrase after that it stop responding. it say Sorry, [Bot name] is not responding. Please try again later. After tracing the logs we found its sending below error. Please guide us what is wrong with our approach.
{
labels: {3}
type: "assistant_action"
}
severity: "ERROR"
textPayload: "No trained NLU model found."
timestamp: "2022-02-17T12:00:35.499117218Z"
trace: ""
}
This issue resolved now, Google resolved this issue we need to follow these steps. Open your project-> Go to Main invocation-> Edit it by adding prompt message->Save the changes-> Now NLU model trining in progress will show up at bottom, wait until its execution end. -> After that try testing your action, it will work Please see this for more

vSphere Build Version via API

Is there a way do get the vsphere build versing using any API/SDK/REST?
I know it's possible using powershell on vcenter for that, but it'd be great if there was another option.
Like described here: https://www.virtuallyghetto.com/2017/08/powercli-script-to-help-correlate-vcenter-esxi-vsan-buildversions-wo-manual-vmware-kb-lookup.html
It looks like you should be able to using the VMware vSphere API Python Bindings, as you can just simulate going through the Managed Object Browser.
Parent Managed Object ID: ServiceInstance
Property Path: content.about
And then there is a build string which is what you are looking for.
I figure out how to do this, my need is having as much information about vsphere as possible, so get datacenter, cluster and host details is mantaroy.
For that I used the official ruby api, rbvmomi, but I believe it's exactly the same thing for python one and golang.
It's needed to interact through host folder under root/children object, which is not that clear on wmware api docs, to get it easier follow a piece of code:
vim = RbVmomi::VIM.connect host: host, user: 'user', password: 'pass', insecure: true, debug: false
vim.root.children.each do |root_child|
root_child.hostFolder.children.each do |child|
child.host.each do |host|
prod = host.config.product
puts host.name,
prod.apiType,
prod.apiVersion,
prod.build,
prod.fullName,
prod.instanceUuid,
prod.licenseProductName,
prod.localeBuild,
prod.localeVersion,
prod.name,
prod.osType,
prod.productLineId,
prod.vendor,
prod.version
end
end
end

ADMG0007E: The configuration data type ConfigSynchronizationService is not valid

I'm trying to automize WebSphere Deployment process for zero down-time using steps which you can find in this link..
According to documentation's first step , we should disable "Automatic Synchronization" for each node. To automize it, I'm using script which given in documentation but when I try to apply the command below :
set syncServ [$AdminConfig list ConfigSynchronizationService $na_id]
I'm facing with an error that : ADMG0007E: The configuration data type ConfigSynchronizationService is not valid
As I checked IBM documentations, I couldn't see any resource which referred to this problem.
Does anyone have any workaround or direct solution for it?
Thanks in advance for your suggestions.
PS: I should mention that document written for zOS system but I'm trying to apply that methodology to WebSphere AS on Linux.

WebGui in Fiori

I am implementing List Expiring Contracts app in s/4hana 1610.
While execution, encountering below error
Issue in Text :
http://sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=200&sap-language=EN#SalesContract-listExpriringContracts?sap-ui-tech-hint=GUI
As seen rom above link, the host name and port is missing in it.
Please advise how to maintain it.
Make sure your WebIDE is connected to backend system:
If you have already a backend system configured for your WebIDE:
Replace RefAppsBackend in file neo-app.json with your backend system.
Else:
Goto SAP WebIDE and choose Tools -> SAP HANA Cloud Platform Cockpit.
In this Cockpit select ‘Destinations’ on the left side and then ‘New Destination’
Maintain the following entries:
Name: RefAppsBackend
Type: HTTP
Description: RefAppsBackend
URL: Port information of the backend system
Proxy Type: Internet
Authentication: choose an appropriate authentication
Additional Properties:
TrustAll: true
WebIDEEnabled: true
WebIDESystem: RefAppsBackend
WebIDEUsage: odata_abap,ui5_execute_abap,dev_abap
Thanks Sunil for your reply.
WebIDE is not configured in our system.
So,the issue is resolved by creating a HTTP Connection(Type H) in SM59 Transaction and mentioning my Launchpad Host Name and Port in Target Host and Service Node.
Regards,
Sayed

Function app binding issue - Value cannot be null. Parameter name: hostAccount

When I try to upload the zip file to an azure function app using kudu REST API, it throws an error while I try to view the c# code in Function App editor in the browser. The error is:
"Error:
Function ($Source) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Source'. Microsoft.Azure.WebJobs.Host: Value cannot be null.
Parameter name: hostAccount.
Session Id: xxxxxxxxxxx
Timestamp: 2016-12-02T18:35:00.083Z"
Please note that I have automated end to end of Application Insights starting from creation of a resource group till exporting the multi-setep web test results to our Splunk - All using Powershell.
In this process of automation, I am forming a storage connection string and setting it to the app settings of the function app and then providing that key in my function.json binding.
But still I get this error.
Here is the issue I created in the Azure Function App - Git: https://github.com/Azure/azure-webjobs-sdk-script/issues/1020
The error points to missing host configuration (e.g. the host storage account).
If you're automating the creation process, you need to make sure the required environment variables are properly set. The recommended way would be to use an ARM template manage that for you.
I have some details on how you can get the ARM template for a resource (which you could use to look at the required settings for your Function App) here.
We also have some sample templates you can use linked here
I hope this helps!