I'm getting an authorization error trying to authorize nest integration with home-assistant - authorization

I'm trying to set up nest integration with HomeAssistant and getting an "Invalid request".
How do I track down the cause?

There are known issues with the integration at this time. See the note on the Home Assistant Nest Integration page: https://alerts.home-assistant.io/#nest.markdown
For workarounds, check out this github issue: https://github.com/home-assistant/core/issues/67662#issuecomment-1079977875

Related

Try it out functionality of tmdb api not working

When I tried to see data through try it out functionality then it is showing the following error
Error: Network Error
Check the developer tools console, it might have more information on the error.
If you are using an Adblocker, it is possible your Adblocker is blocking the request.
I also tried after disabling adblocker but it also does not work
console showing like this
Why this is happening and what is the solution for this?
Thanks in advance
Try the url in your browser with the API key. You can see the response.
Example :
https://api.themoviedb.org/3/movie/popular?api_key=your_api_key
Found out this is due to extension 'stoplight' in their site. Site Manager has said
"I believe Stoplight has temporarily blocked the "Try it out" feature for our account because too many people were using it as the source
for their apps, and not using api.themoviedb.org for some reason. No
timeline on getting it restored, but that's the problem. - Travis Bell"
follow this thread, In case it gets sorted in future.
https://www.themoviedb.org/talk/600184fc6aa8e0004077e364?page=1#6001bbacbe4b36003d514ac3
Apparently it depends on the way you try to access the data.
In my React application I was using Axios.Which ended up with ReferenceError: response is not defined. (got no response)
Afterwards I tried using the javascript fetch API. It worked good for me
So if you are trying to use it in an app you might want to use the fetch API. If you just encounter network error while using Try it out function on site - then you can copy the link and paste it directly, it should work fine.
Currently, I am using it in my dashboard and I have JWT authentication for the API that I'm using. I have implemented the interceptor to update HTTP HEADERS so I saw I'm passing a header name 'token' and checked there if any unnecessary headers were given or not with not accepting the TMDB API server. So I have sent a clean HTTP request and it's working fine.
All you have to just remove the unnecessary HTTP HEADERS

Getting 403 Forbidden error when creating onlineMeetings

I tried posting to /app/onlineMeetings but I always get 403 Forbidden error (both on NodeJS and C#) samples. I already set the API permissions on the app registration and on the scope. Is there anything else that I need to setup before this will work on my end?
Any help is appreciated. Thanks!
The API /app/onlinemeetings is beta API that has been deprecated and is replaced by /communications/onlinemeetings. I recommend trying that instead.
I was able to make it work. I didn't realize on the first try that I need to have the application permission level to able to use onlineMeetings endpoint. I was just following their NodeJS tutorial that doesn't cover endpoints that need application permissions.
Your problem probably is when you are going to get the access token for your application. If you are using common as tenant id, first you have to do is use your tenant id instead of common word, as explain here.

TypeError: Failed to fetch swagger ui issue

I am new with swagger and i am experiencing some problem with it.I've run a server for the swagger and additional for the dummy data that you can generate from the swagger but both are not connected somehow.
I am getting this error
also this is the error i am getting when i do so:
I know this issue is with CORS and i've read all docs provided:
cors git
Crossover with git -cors
a link from SO with similar issue: link
and i am still not able to fix my issue!
Please advise,
Darko
Ok,
I found a solution to my problem. What basically what was i doing was testing the problem on a wrong server the swagger local editor and i needed to test it on the swagger tester. Sorry for the inconvenience i solved my problem by just testing it on the local swagger ui that is provided by the swagger server.

Customizing Rally using Rally app builder

Trying to customize Portfolio Item Burnup , got source code from https://github.com/RallyApps/app-catalog/tree/master/src/apps/charts/rpm/burn
Now after compiling using "rally-app-builder build" command and after that running with "rally-app-builder run" command, I am able to run the page. In another tab of chrome, Rally is logged in. the launched page is getting authentication from rally session and able to get some data like searching some PFG/PF etc.
Now problem is after applying some settings and selecting some PF/PFG, its again demands authentication (for rally1.rallydev.com/slm/webservice/v2.0/security/authorize). This authentication is not working with my credential.
I have also generated some api key from rally1.rallydev.com/login/accounts/index.html#/keys ,but, that also not working.
Pls help on this.
Thanks,
Udayan
I'm assuming you use SSO to login? If so, you won't be able to correctly authenticate against that /security/authorize endpoint (which is used for generating a CSRF token when making POST/PUT/DELETE calls against wsapi- GETS are fine).
You were on the right track with the api key. Generate a key and then just add it to the query string of your app url:
http://localhost:1337/App-debug.html?apiKey=83h3lkb4b43302bfvlav
There's also a guide in the App SDK docs that describes this in greater detail: https://help.rallydev.com/apps/2.1/doc/#!/guide/embedding_apps

How to do stress testing for a Liferay webpage?

I have a webpage in a Liferay 5.2.3 site, in order to view this page the user shoulde be logged in.
i tried JMeter for stress testing but i stopped after i had this issue here ("invalid authentication token"). What other tool i could use to do stress test without facing the authentication issue (with example of script if its available).
I had the same problem. I managed to log in and then when sending POST requests to the server I only received 403. What I have done is that I set the auth.token.check.enabled to false in the portal-ext.properties.
auth.token.check.enabled=false
But be careful. The Portal Authentication Token was implemented to prevent Cross Site Request forgery, as explained here: https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF).
On a production environment set the property back to true.
More about that on the liferay site: http://www.liferay.com/community/wiki/-/wiki/Main/Authentication+Token
Well I'm not sure but you could try Grinder, it supports jython as scripting language, although i dont have a working script example at the moment.
You can use JMeter but you have to use its proxy to record your actions (login included).
Please see JMeter proxy step by step