No option to select scope in developer studio - uber-api

We are using developer studio to create a app, and trying to add scope to fetch driver profile information. But can't find any option in app to add scope. There is documentation in the app config page, but I don't see any option to add scope, How can we do it?
As a result when we are hitting API to driver info, we are receiving following error:
{"code":"unauthorized","message":"This endpoint requires at least one of the following scopes: partner.accounts, partner.admin_accounts, partner.accounts.public_id"}%

Related

Unable to publish a app to google marketplace

I have created a google cloud console project and enabled "Google Workspace Marketplaces SDK along with other APIs.I have created an OAuth client for the service account and an OAuth client for a web application.
I have configured "Google workspace Marketplace SDK" under tab "App configuration without any error. When I am trying to save "store listing" after filling in the detail, it shows an error without any hint. I am unable to figure out what went wrong.
It seems that there might be a bug on the console interface, you can report it on https://developers.google.com/workspace/marketplace/support#bugs
I've heard that some users have reported to solve it with a workaround.
If you just check "All Regions" it won't let you continue. Even though it hides the region selector, you have to first select at least one region and then check the "All Regions" box."​
If that doesn't work, it's better to report it.

google spanner and direct REST api calls

I'm trying to use spanner emulator and I followed the instructions reported here:
https://cloud.google.com/spanner/docs/emulator
to set it up.
I can use gcloud shell commands to create instance, database, tables, etc. and all works correctly.
But I am not able to use the Rest API directly to access the emulator, even though the google documentation reports it is possible not only to use google client libs to access the emulator, but also the rest api.
The first problem is that it is not clear if I have to use either the base URL
https://spanner.googleapis.com/
or
http://localhost:9020/
When I try with
http://localhost:9020/v1/parent=projects/local-project/instanceConfigs
I always returns and "Not found" message, which means the the Rest API ws are responding, but through gcloud commands I can manage such instance and project!
What am I wrong with?!
According to the official documentation :
Using the Cloud Spanner
Emulator
"The Cloud SDK provides a local, in-memory emulator, which you can
use to develop and test your applications for free without creating a
GCP Project or a billing account."
Therefore you should use the localhost (localhost:9020 for REST requests).
You should use http://localhost:9020 to access the emulator if you want to manually access the REST API, so you were on the right track there.
The URL should however be http://localhost:9020/v1/projects/test-project/instanceConfigs to list all instance configurations on the emulator. Use http://localhost:9020/v1/projects/test-project/instances to list all instances.

Can't Authorize Dev Hub or Org in SF/VS Code Env. Setup for SF

I'm trying to Authorize Dev Hub in SF, It opens up a browser window to login and once I put my Credentials and click login, The Page Simply Keeps Loading, Never Finishes loading.
I have everything in place, SFDX is installed, VS Code Extensions for SF installed, The Dev Hub is enabled from the App settings.
Saw Various Videos and Articles on this but no solution works in my case. Tried all options available in VS Code Command Palette related to Authorization and also tried doing it using cmd.
Please Help.
Thanks in Advance
Any Other Information can be provided on demanded.
You need to make sure that your user profile has access to the connected apps like Salesforce CLI.
I had the same issue. So, I created a permission set and added this set to my user. That solved the problem.
Try to install this plugin with the following command: "sfdx plugins:install salesforcedx#48.22.11"

Firebase Storage Can't Connect, Retry again

I imported an old project into Firebase when I joined.
On the https://console.firebase.google.com/project/project-name/overview page, when I try to grab the code snippet to initialize my Firebase, the storage bucket shows up with empty URL.
Today, I started a new project, this time, using the Firebase console. After creating the project, the StorageBucket URL showed up in the initialization code snippet automatically.
When I check both project's storage rules, I see the URL pointing to the right places, however, the imported project gives this error under the Storage > Files tab:
It has been like this since day one I imported the project.
When I went to https://console.cloud.google.com/storage/browser to see if the new project I created would show, it did.
Are there any extra steps on my part to get the storage bucket URL to show for the imported project?
Who's this answer for?
If you imported your project into Firebase and having the above issue specifically with your Firebase Storage.
After back and forth with Firebase Support, if you're facing similar problems as mine, here's the approach you can try. I'm trying to replay the conversation and steps given by the Firebase Support
Make sure that you are the owner of the project you are accessing.
If you have multiple Google accounts signed in, Firebase Database can't
seem to connect to the server. Sign into incognito mode
Check in your API Manager if the following are enabled
a) App Engine admin API
b) Firebase Rules API
c) Google Cloud Storage
Check if you have an App Engine app is enabled https://console.developers.google.com/project/_/appengine
Go to Firebase Storage AppManager tab
https://console.cloud.google.com/storage/
a) Add the service account firebase-storage#system.gserviceaccount.com as an owner on the storage bucket: .appspot.com.
b) Additionally, you need to edit the "object default permissions" to allow for similar access.
Now, if you have all the above in place, next step is this:
Add new Server Credentials
In credentials page, ( https://console.developers.google.com/apis/credentials ),
click Create credentials, select API key
Select server key
Put name as "Server key (auto created by Google Service)"
At the time of writing this, creating the Server Key was what got it to work.
A few words:
The issue of not able to use Firebase properly when two accounts are logged in the same browser doesn't plague me anymore. Logged into two accounts, and both Firebase projects are up and running without any issue.
I fixed mine by using the command to work on it using
firebase init storage
This would create the storage after that it would add a storage.rule in which you can update to your liking in your project .
Then you run this command
firebase deploy --only storage
This would initialize the Storage
If you are still having issues check out this link https://stackoverflow.com/a/74750337 which was also provided by firebase for me to fix the error
This is how i fixed mine

How to deploy application in bluemix from eclipse

When I try to deploy application to bluemix, I get following error
Error: Host taken error. A different mapped application URL is required before pushing or starting the application.
Though If I download a default application created bluemix, download the same and import in eclipse and then redeploying application works fine. I am sure I must be missing some key steps, wondering if someone can point me to the link that has those details or missing step.
Use the screenshot below to ensure that your mapped URL is correct:
according to the posted error you just set a wrong URL for your app's mapping URL: just check on Eclipse Server view, you should have Bluemix Server item, double click on it to open, it should show your server configuration, go to Applications and Services tab, here you could find you app listed; now double click on it, it should open you app properties, check on Mapper URL property under General configuration tab.
Otherwise could you provide some details more about the configuration used on Bluemix Eclipse plugin?
As per my understanding..
application name is globle. what ever application name using that already used by someone.
try to change Name.
ex:- cocacola.mybluemix.net change to cocacola429.mybluemix.net.
it worked for me.