Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CF DEPLOYMENT NEVER WORKS #360

Open
I501307 opened this issue Dec 1, 2022 · 11 comments
Open

CF DEPLOYMENT NEVER WORKS #360

I501307 opened this issue Dec 1, 2022 · 11 comments

Comments

@I501307
Copy link

I501307 commented Dec 1, 2022

app gets deployed to cf but not at all in working conditon : {"statusCode":401,"code":"401","message":"Unauthorized"}
can someone please share why am I getting this error?

@gregorwolf
Copy link
Contributor

Please provide more details where exactly you get this error. Are you trying the NodeJS or Java variant?

@srinikitha09
Copy link

Please provide more details where exactly you get this error. Are you trying the NodeJS or Java variant?

We used mbt tool for the deployment. When we try to click on the hyperlinks (Books, Authors etc.,) as shown in the image, it throws unauthorized error.
image

@gregorwolf
Copy link
Contributor

Have you assigned the Role Collection?

@srinikitha09
Copy link

Have you assigned the Role Collection?

Thank you for the hint. Unfortunately, we do not have enough permissions on the level of subaccount to assign those role collections. We will try to deploy to another account and try in that way and will get back to you. Thank you :).

@I501307
Copy link
Author

I501307 commented Dec 5, 2022

This still doesn't work :
{"statusCode":401,"code":"401","message":"Unauthorized"}

@gregorwolf
Copy link
Contributor

Do you see any further error messages in the approuter / srv logs?

@gregorwolf
Copy link
Contributor

Unfortunately you haven't provided detailed information what endpoint you're accessing. Seems that you try to access the srv endpoint directly. That does not work unless your browser would send a valit JWT token in the Authorization header as a Bearer token. You have to access the app via the HTML5 application that gets deployed to the managed approuter. I just did deploy this app to my BTP trial account and it works like a charm.

@srinikitha09
Copy link

srinikitha09 commented Dec 6, 2022

Unfortunately you haven't provided detailed information what endpoint you're accessing. Seems that you try to access the srv endpoint directly. That does not work unless your browser would send a valit JWT token in the Authorization header as a Bearer token. You have to access the app via the HTML5 application that gets deployed to the managed approuter. I just did deploy this app to my BTP trial account and it works like a charm.

Yes, you are right! We are trying to access the srv endpoint directly. But, when we try to access it via HTML5 application it is forcing us to subscribe to either of these services. Is it really needed to subscribe to these services to run or see something through HTML5 applications?
image

@gregorwolf
Copy link
Contributor

As this project doesn't provide a standalone approuter you have to subscribe to one of the mentioned services. The cheapest or even free one is the Launchpad Service. You might create a new issue in this project and suggest the addition of a standalone approuter.

@I501307
Copy link
Author

I501307 commented Dec 7, 2022

Unfortunately you haven't provided detailed information what endpoint you're accessing. Seems that you try to access the srv endpoint directly. That does not work unless your browser would send a valit JWT token in the Authorization header as a Bearer token. You have to access the app via the HTML5 application that gets deployed to the managed approuter. I just did deploy this app to my BTP trial account and it works like a charm.

Do we have any information or documentation on how to deploy to cf using the steps that you carried out ? Is there any project that works out of the box?

@gregorwolf
Copy link
Contributor

Maybe we can also close this issue @I501307 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants