cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an API Based on Slack: Error while publishing product

mphlippen
Explorer
0 Kudos

In the journey "Developing with SAP Integration Suite", unit "API Provisioning", lesson "Creating an API Based on Slack" I get an error in "Task 6: Create a Product From Your API". 

When I want to publish the product I get this error message:

mphlippen_0-1676020823710.png

The "Show details" are not really helpful:

mphlippen_1-1676020857001.png

Note: There are some discrepancies between the screenshots in the task (or the steps in the Exercise) to how the Integration Suite actually looks. I guess the screenshots were made with an older version. So I might be missing something here...

I noticed however, that the step with the API Business Hub Enterprise feature is missing entirely in the Exercise and this step really confuses me as I only get a "Login" button there, that is actually a "Logout" button. So I guess this could be related to my problem here?

What I see when clicking on API Business Hub Enterprise:

mphlippen_2-1676021137897.png

And what the "Login"-Button actually does:

mphlippen_3-1676021209266.png

In any case, I cannot proceed with the lessons as I cannot publish the product.

Thanks for help & Kind regards!

 

Margit_Wagner
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @mphlippen,
We have received your request and are in the process of evaluating the problem.
Please allow for a delay in our response.
Kind regards
Margit

mphlippen
Explorer
0 Kudos

Hi @Margit_Wagner,

Thanks for the reply. Do you have any news for me? I'd like to proceed with the tasks 🙂

Or can I ignore the issue (for now) and proceed with the next lesson regardless?

Thanks & Regards!

View Entire Topic
jannes_schofeld
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @dhrubajyoti @Jarmo_Tuominen ,

unfortunately I cannot reproduce the issue. I have adjusted the instructions, can you try to execute these adjusted instructions?

  • remove package-lock.json file from your project

  • create a file .npmrc in the directory where the package.json resides
  • add following line into the .npmrc file 
    registry=https://registry.npmjs.com/
  • run command npm install in the terminal within the root directory of your project (where the package.json file resides)
  • try to do the cf push again
  • let us know the results

I took inspiration from the following question in the community https://answers.sap.com/questions/13544661/how-to-avoid-changes-in-package-lockjson-when-usin.html , but unfortunately as said cannot reproduce the issue myself.

Thanks and best regards,

Jannes

Tiwari
Explorer
0 Kudos
deleted package-lock.json and then created file .npmrc in the same directory where package.json resides. then ran npm install and then CF PUSH.. but again same error..
Tiwari
Explorer
0 Kudos
I had even tried replacing content http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/ from package-lock.json with this URL. but, still it did'nt work.
Tiwari
Explorer
0 Kudos
someone has suggested on stackoverflow - npm config set proxy http://domain:8080 but, I am not sure as how to try this 😞
Tiwari
Explorer
0 Kudos

I may be wrong but the URL ( http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/) may be causing this. this may be locally accessible from SAP network but not from outside. This is just a vague thought. I tried opening this link and it says that it is not reachable. this URL is generated in package-lock.json file.

Tiwari
Explorer
0 Kudos
i also added "engines": { "node": "16.11.1", "npm": "8.0.0" } in package.json but no luck 😞
Tiwari
Explorer
0 Kudos
Sorry Jannes .. I know it would be difficult for you as you are not able to reproduce this issue. I am also trying different options to check and let you know so that something can trigger some thoughts which could be helpful for us facing this issue. Thanks
Tiwari
Explorer
0 Kudos

i tried command- "npm help config"    result --- npm ERR! code ENOENT npm ERR! syscall spawn man npm ERR! path man npm ERR! errno -2 npm ERR! enoent spawn man ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2022-03-30T16_44_12_569Z-debug-0.log

jannes_schofeld
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Tiwari,

thanks for your efforts and for keeping us informed. Could you please try to run command

npm ci

instead of the npm i or npm install? npm ci is doing a clean install of all dependencies, e.g. removing all existing node modules before installing them again.

Best regards,

Jannes

Tiwari
Explorer
0 Kudos
Hi Jannes.. npm ci is throwing error if we remove package-lock.json. i ran npm install first and the ran npm ci. after that, i ran cf push but i am still getting the same error.
Tiwari
Explorer
0 Kudos
@Jannes - I tried npm help config command --- getting below error - npm help config npm ERR! code ENOENT npm ERR! syscall spawn man npm ERR! path man npm ERR! errno -2 npm ERR! enoent spawn man ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in.. I am not sure if you can get any clue with this error. Thanks for your help!