HMS Core AI Model Integration Error 403 on Template File Download when Using MindSpore Lite Inference Engine - huawei-mobile-services

I'm using HMS Core Plugin - Model Integration from Coding Assistant to try to integrate my pre-trained model. I use MindSpore Lite inference engine and use caffemodel.
Setup my caffemodel with MindSpore Lite Inference engine
When I try to finish my setup, it says "checkAndDownload" file not exists and trying to download. After that, I get a 403 error on template download from http://cdn.ide.deveco.huawei.com//ai/download/foundation/template-1.3.1.zip
error 403 on download
Did I miss some configuration or it is a bug from the HMS plugin itself?

A 403 error is an access forbidden error. The reason for the error can be that the directory does not exist, the index is wrong, or that they are unpermitted to access the information/download.
At this time, the download may not be accessible by you.

Related

HttpError 403 with CONSUMER_INVALID as the reason when deploying a machine learning model to Google cloud's AI platform

I am following the tutorial here (https://cloud.google.com/ai-platform/training/docs/training-jobs#python_1) and using Python to deploy a machine learning model to Google cloud for training. However, I got HttpError 403: "Permission denied on resource project my_project." The reason for the error is "CONSUMER_INVALID." Specifically, the returned metadata shows that the consumer is "projects/my_project," and the service is "ml.googleapis.com".
I went to the AI platform and my project is indeed there. The API I am requesting to use is enabled for the project and the environment variable GOOGLE_APPLICATION_CREDENTIALS has been set correctly. I am wondering how to fix the problem. Thanks!
I ran into this issue when I used my literal Project Name. I had to instead use the 'ProjectID' which is listed in the 'Home' Dashboard, in the 'Project info' widget.

how to include external libraries to arduino extension?

pnp_device.h:10:42: fatal error: digitaltwin_device_client_ll.h: No
such file or directory
I'm using arduino and azure iot tools to use azure iot plug and play feature.
I generated the plug and play code stub using vscode azure iot tools, but while uploading the code the above error is raised.
As the file missing is in the external library (Azure-iot-sdk-c) I tried adding its path in c_cpp_properties.json even though the error persists.
I want to know why it is happening ?
I need some help...
We have a devkit SDK especially for the PNP. You can follow this readme and change the version of SDK.

ArangoDB Foxx Service - Failed to load API definition

I am using arangoDB 3.3.3 on macOS.
With the intention to output a JSON-collection from arangoDB via the browser, i am using the Foxx microservice tool, which is offered by arangoDB. I imported the json-file to the database via the offered import script by arangoDB.
When I upload the service-file zip to the arangoDB web interface and trying to make a request to the linked path, it shows me the following error message in the API window:
Unauthorized http://localhost:8529/_db/_system/_admin/aardvark/foxxes/docs/swagger.json?mount=/getting-started
Anyone, facing the same problem and having an idea how to solve this issue?
This is due to a bug in the web interface that should be fixed in 3.3.4, so updating should resolve your problem. See https://github.com/arangodb/arangodb/issues/4453 for details.

IBM Bluemix - Kitura Swift - is missing a required environment variable: 'OPENAPI_SPEC'

I am stuck for the moment. I cannot obtain the source code for the mobile project and I do not know where is the problem. All my researches was without positive result.
My intention with IBM Bluemix is to develop myself a small project only in Swift (server side + iOS) because I am iOS mobile developer.
When I try to get the code for mobile project (iOS) I get these error:
Error Notification:
The Cloud Foundry App 'XXX' is missing a required environment variable: 'OPENAPI_SPEC'.
I want to use OpenWhisk SDK for iOS. I do not know where to set the variable OPENAPI_SPEC and what value to put in it.
I have setup a Cloud Foundry App started from "Runtime for Swift - Kitura" and a mobile project named started from "Code Starter - OpenWhisk".
Can you help me with some advice or some sample?
Thank you!
If you added a Swift server side Compute to your mobile project, you will need to add an environment variable called OPENAPI_SPEC to your backend to point to a valid Open API swagger document outlining the API.
This way when you download the project, it will auto-generate an SDK corresponding with your backend's Open API.
For instance, here is how you set the environment variable:
And here is a valid API doc that it's using (albeit not in the most elegant Open API compliant format yet but it works).
https://updatesdk.mybluemix.net/explorer/swagger.json
The idea is that the "project" concept takes an abstracted view of a Compute runtime (Cloud Foundry, Docker, etc.) and only cares that it exposes an API compliant with the Open API specification. Using that defined Open API spec, you can dynamically generate an SDK for a "project" when it's downloaded (for iOS, Android, etc.).
If your backend Compute exposes no Open API specification at this time, and you just want to download the code of OpenWhisk for iOS, you can just deassociate that backend Compute from your mobile project for now, and it should download the code. If you ever build on top of that backend and want to reconnect it in the future, you can add it and redownload at a later time (doing a git diff or using the Bluemix CLI SDK plugin to download an SDK from your Open API specification later in your project's lifecycle).

failed to load Component.js: 404 - Not Found

My colleague has developed an extension project to Approve Purchase Contract application using local trial Web IDE. I imported his project using the licensed Web IDE from SAP gateway server. The folder structure looks like this:
.
My index.html looks like this:
.
Whenever I run using index.html or Component.js, I'm getting below error. Kindly help.
Uncaught Error: failed to load
'ui/s2p/mm/purcontract/approve/MM_PC_APVExtension/Component.js' from
./Component.js: Error: failed to load
'ui/s2p/mm/purcontract/approve/Component.js' from
/sap/bc/ui5_ui5/sap/MM_PC_APV/Component.js: 404 - Not Found
The error message says:
ui/s2p/mm/purcontract/approve/MM_PC_APVExtension/Component.js is found but it can not be loaded because a dependency is not found. That missing dependency is ui/s2p/mm/purcontract/approve/Component.js which should be available at /sap/bc/ui5_ui5/sap/MM_PC_APV/Component.js.
Please follow the SAP Documentation DOC-58342 step 4.2 to be sure the "Approve Purchase Contract App" is installed and activated and the necessary roles are assigned.
Thanks schnoedel. I resolved the issue by recreating the extension project and copying the code changes from old project.