getting authorization error while working with here maps - reactjs

I am working with react and trying to display map component
sadly the documentation doesn't have much to say about this part
the component loads and everything is good until I start zooming in
[![at some point I start getting this apikey Invalid and map turns to white ][1]][1]
[1]: https://i.stack.imgur.com/cDEcc.png
[![this is the code I am using to render the map][2]][2]
[2]: https://i.stack.imgur.com/soWpe.png
If anyone knows some good source to help me while using the api please share it below.

Turns out the problem is my key expired after 1 hour because I need to activate my here account
Sadly I didn't get that from the notification message that I ignored because I only wanted to get the key
If anyone came across this error just check if your account is activated or not

Related

How i show React tables/API?

Hi Guys i was trying to do and API From this video link https://www.youtube.com/watch?v=gpfP60KjmZU&t=2s , but it doesnt work for me i did exactly the same thing as this guy but in a new version i changed some things of course because the Switch is different in this version but when i run my API the tables dont show like in 47:25 in the video is just the blank page with the menus but is not appearing any tables if anyone can help me im new to react and im trying to make this register table work if anyone can help me i appreciatethis is what my page looks like this is how i need to look like,if anyone wants the print of the code im gonna put the tabs and ask me which one you want a and i send ask me the tab i click and i send the print i answer quickly

Faker avatar is not working in my project

I'm using faker for random information but avtar is unable to open and showing error by clinking this link https://cdn.fakercloud.com/avatars/victor_haydin_128.jpg
and i had updated all to latest version.
Please help me to solve this issue
The fakercloud.com domain has expired, and the author appears to have wiped out the whole project for political reasons.
Based on the unreliability, I'm transitioning away from faker at this point, but if you want to continue using it, you could fork a previous version of the code and change the hard-coded link from fakercloud.com to something that works (either something you control or another similar service).

Not get proper URL when deploy code in production using rest API in salesforce

Am using rest api for get some data .. I use same code in sandbox it work well.. but when i use this code in production it will show error.. i will attach some image for particular error anyone can please resolve it..
enter image description here

Devices created with smart-home-java sample always offline

I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?
As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline from a QUERY. You can also comment out or remove this line to debug the issue.

Mapping natively not working

i have 2 days trying to make native google maps to work. I followed all the instructions i found, nothing. I searched for 2 days if others had any problems, i followed their solution but still nothing.
Maps appear on the simulator but not at the telephone. I tried with a dialog nothing. I tried to a container to the main form nothing.
I also tried final MapContainer cnt=new MapContainer(new GoogleMapsProvider("my_api_key")); but still nothing. With this i couldn't see the maps neither to the simulator.
I have downloaded from git first and then from the extensions but still the same. Nothing shows up.
Google api console shows the requests every time i try to see the map, but no map on mobile. I also used with SHA1 and without. The same results.
I noticed that in BuildHints it automatically adds android.playService.maps=true, and when i tried to add the android.includeGPlayServices=true there is a build error, cannot be used together the error log says.
My codanameone plugin version is 3.5.8
Thanks in advance.
You need to have a google API key using this build hint:
android.xapplication=<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>
ios.afterFinishLaunching=[GMSServices provideAPIKey:#"YOUR_IOS_API_KEY"];
You need to login to the google cloud API console and turn on map support for your application picking "native Android" and then "native iOS" then copy the key for each and replacing the strings YOUR_ANDROID_API_KEY and YOUR_IOS_API_KEY respectively.
Go to the Google developers console to check your credentials.
https://console.developers.google.com/apis/credentials
Be aware that you need to remove the key restriction to make the API key work with Codename One.

Resources