Error while Uploading file for API in apigee - apigee

I have an existing API proxy in Apigee edge. When I am trying to edit and save any policy I am getting below error.
Error while Uploading file for API <api name>.
org.apache.xerces.dom.ElementNSImpl cannot be cast to com.apigee.messaging.config.beans.TargetConnection
I am not able to figureout how to resolve this.
Thanks in advance.

When you get an error message like 'cannot be cast to...' that suggests that the field is expecting a certain type (message type in your case, like a request object or response object).
Try ensuring that the variable you enter into that particular field is a message type. It may be that the variable you are using is only a subset of a whole message.

Related

Is it possible to obtain an access_token with expo-auth-session/providers/google?

I am trying to obtain an access token for use with Google APIs using the up-to-date expo-auth-session package.
It works fine to fetch an id_token via useAuthRequest({responseType: "id_token", ...}) or useIdTokenAuthRequest({...})
However, when trying useAuthRequest({responseType: "code", ...}), I get the following error:
[Unhandled promise rejection: Error: The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.]
Does anyone know what is missing from the request? I am using the Expo Go app currently, so I'm not sure if that prevents obtaining an access token. Currently digging through the package's source code...
Add the following two props to useAuthRequest
shouldAutoExchangeCode: false,
clientSecret: 'any_bogus_value!'
shouldAutoExchangeCode will prevent the code from being exchanged and send it back to you in the response.
clientSecret will simply trigger and if check to be true in the providers source code that will avoid that error you specified being returned.
Note that in general it is not a good practice to avoid errors, but in this case, I feel like the error is being shown in error itself!

"The provided value for the input parameter 'redirect_uri' is not valid" Using firebase

Firebase tells me to do this:
So I did
But I'm still getting this error "The provided value for the input parameter 'redirect_uri' is not valid"
I feel like I've followed instructions exactly but it's still not working. I have no idea how to debug this further. Any suggestions?
Here is my frontend code where I call signIn
let provider = new firebase.auth.OAuthProvider("microsoft.com");
provider.addScope("Calendars.Read");
firebase.auth().signInWithPopup(provider).then(handleResponse);
Edit
I changed the url to my custom domain and it seemed to be working but now I'm getting Error getting verification code from microsoft.com response: proof key for code exchange is required for cross-origin
For some reason Firebase decided to change the url where it handled auth. Instead of using the .firebaseapp.com/__/auth/handler url, it is using my actual custom domain. Though I don't really understand why this would happen...?
The Error getting verification code from microsoft.com response: proof key for code exchange is required for cross-origin was happening because I had configured an SPA on Azure instead of a Web platform.

Unable to connect R with Youtube API

I am trying to connect with the youtube API using yt_oauth function but getting error as follows :
Error in readRDS(token) : error reading from connection.
I have checked my application several times. First I got the API Key and then the Client ID and Client Secret. I am using the Client ID and Client Secret for app_id and app_secret below. I have enabled all the 3 youtube APIs(Data,Analytics,Reporting)So where can I be going wrong? Any help appreciated.
Below is the code I am using
library("tuber")
app_id <- "XYZ"
app_secret<-"abc"
yt_oauth(app_id,app_secret)
Seems that you called yt_oauth previously with some invalid parameter. A file called .httr-oauth may exists at your current path (in my case it was on My Documents folder). One can remove that file or alternatively do this:
yt_oauth(app_id, app_secret, token = '')
It will force tuber to refresh the token state.

use of unconstructed message in an orchestration

I have this problem that I hope someone can help solve.
I have an orchestration that as input receive a file (message as Microsoft.XLANGs.BaseTypes.Any). Just a file with some unstructured text.
I have created a Dynamic send port that save the received file in a backup folder.
The issue is that when someone send the same file (with the same filename), it doesn't overwrite the file in the backup folder.
when a try this following in a constructMessage shape
Message_new = orgMessage;
Message_new(FILE.CopyMode)= 2; //2=overwrite,
Both message are of same type: Microsoft.XLANGs.BaseTypes.Any
I'm getting this error:
Error 1 use of unconstructed message 'orgMessage'
'': message has not been initialized in
The error you got is not linked to the dynamic port neither the copy mode.
You are trying to assign to your message named "NewMessage" a message that is not constructed neither received in the orchestration.
Please check that the message named "orgMessage" is a message that was received via a receive shape or if it is constructed before your message assignment.

Yahoo Pipes : rss feed source Error?

i want to know if everyone is able to see the following URL successfully, because i am able to do so.
but then, i try to use the URL above as my feed source in yahoo pipes, they show the following error :
Error fetching https://script.googleusercontent.com/macros/echo?user_content_key=gX6zUbmTiZ8Xk9DYCva__ITpLokoAmTZpASHhRYqYkI4-y9ygjOouyT1wW3zVqfPvTJeoB51eSUF1uBNnrOdX0Ca7qkxG-AVm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFxaYc6GIijDhscoufaRfGaGTvRSfNop4NBZzEpxVXeODMbkDKfYwPS7scWYSCz-orFuq7IVj2xyuyFFanCEzplPVH40WZiiUR_LfmYbIuwY&lib=M-HuCTwEJYePNCQj8khcWIIM8auVI7v_L. Response: OK (200). Error: Invalid XML document. Root cause: org.xml.sax.SAXParseException; lineNumber: 921; columnNumber: 5; The element type "meta" must be terminated by the matching end-tag " ".
how can i resolve this problem ? i try to use different tools on source modules, keep showing the same error.
i don't know if the error either comes from yahoo pipes or my rss url, or even something else.
You can use a Fetch Data module with a "Path to item list" set to "entry".
I took it here and it works for me.

Resources