I am following along with the instructions to renew a token at
https://auth0.com/docs/quickstart/spa/vanillajs/05-token-renewal
and I'm getting this error in response:
{"error":"invalid_token","errorDescription":"Audience XXXXXXXXX is not valid."}
When I make the call to renewAuth, I pass the same audience value I used when calling new WebAuth (and it's not what I'm seeing in the error message (XXXX), which is an unintelligible sequence of characters).
After further examination, the Audience XXXXXX value that is being returned is my client id.
It turned out that I had the wrong client id after cutting and pasting the code from the quick start link. After fixing the client id, all is now well.
Related
I'm trying to create a fulfillment app for shopify, and they send a call once an hour to an endpoint on my app, with the order names they need me to provide tracking numbers for.
Unfortunately the order names have "#" in them (ex. #1001.1). When I receive these calls the query arguments get cut off at the # and the rest of the query string no longer shows. When I remove the # from the call (while testing), the whole query string comes through.
With #'s
Request
GET http://localhost:4200/v1/fetch_tracking_numbers.json?order_names[]=#1001.1&order_names[]=#1002.1&order_names[]=#1003.2
Logged Request on server side
GET http://localhost:4200/v1/fetch_tracking_numbers.json?order_names[]=
Without #'s
Request
GET http://localhost:4200/v1/fetch_tracking_numbers.json?order_names[]=1001.1&order_names[]=1002.1&order_names[]=1003.2
Logged Request on server side
GET http://localhost:4200/v1/fetch_tracking_numbers.json?order_names[]=1001.1&order_names[]=1002.1&order_names[]=1003.2
I'm using atreugo built on top of fasthttp.
Thanks!
Just want to respond here with an update.
I'm an idiot.
Shopify encodes their request URI's.
Their docs mislead me, along with my stupidity. Thanks to everyone who tried to help!
Technical issue with etrade API.
I am constructing a trailing stop sell-to-close order with the following preview in Sandbox:
"{"PreviewOrderRequest":{"orderType":"OPTN","clientOrderId":"27099010699269ea2bee","Order":[{"allOrNone":"false","priceType":"TRAILING_STOP_CNST","orderTerm":"GOOD_FOR_DAY","marketSession":"REGULAR","trailPrice":".15","stopPrice":0,"Instrument":[{"Product":{"symbol":"MSFT","securityType":"OPTN","callPut":"CALL","expiryYear":"2021","expiryMonth":"9","expiryDay":"24","strikePrice":"290"},"orderAction":"SELL_CLOSE","orderedQuantity":"10","quantity":"10"}]}]}}"
However, in response, I am receiving the following error message:
"{"Error":{"code":7,"message":"You did not specify a stop price. Please fill in the missing information and resubmit your order."}}"
As you can see, I am setting the "stopPrice":0 in the order object. I put zero "0" since this is the value used in several examples from the documentation:
https://apisb.etrade.com/docs/api/order/api-order-v1.html#/definitions/OrderDetail
And I tried it as both a number and string: "stopPrice":"0" without success.
Is there a different field/value to set or format/configuration to make this work?
The obvious question is whether 0 is a valid value.
I'd be surprised if it is, but it's easy to check.
I need retrieving all the envelopes that have been signed or sent to an email.
I was trying to do this using the 'accounts/{account_id}/envelopes' endpoint passing the 'search_text' query param. As in the example in documentation https://developers.docusign.com/esign-rest-api/guides/concepts/envelopes/search
/v2.1/accounts/{account_id}/envelopes?search_text=Tabs
But I'm getting always error 400 - INVALID_REQUEST_PARAMETER. Am I doing this in the wrong way?
I think 4644 is most likely not your account ID. can you check what is your account ID?
Also, add :
&from_date=2019-03-04T00:00:00.000Z&to_date=2019-03-07T00:00:00.000Z
I am getting error when script is executed in jmeter, because of signalr connection
I need to pass connectionToken and connectionData in the url as below.
"/Web/signalr/connect?transport=longPolling&clientProtocol=1.5&connectionToken=${connectionToken}&connectionData=${connectionData}"
i am able to capture ConnectionToken and passing that successfully. but, i am facing issue with connectionData, which looks like
[{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}]
How to capture and pass this.
Please find the screeshots
! enter image description here
! enter image description here
! enter image description here
! enter image description here
not able to capture below connection string
connectionData: [{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}]
get method sends above connectionData as
GET //abc.com/Web/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22alertshub%22%7D%2C%7B%22name%22%3A%22loggerhub%22%7D%2C%7B%22name%22%3A%22notificationhub%22%7D%5D&_=1522754518635
and am getting the response connectionToken. i am able to extract connectionToken .
now, i need to send
GET //abc.com/Web/signalr/connect?transport=serverSentEvents&clientProtocol=1.5&tid=10&connectionToken=%27FcFUJytTeVDsNq4EM5iY59NrIlAO4EK0nU%2BP9fDasBFDTA%2B78kpLr05HaQoqstQouqyFMP2hShwh2eHdiG%2BCsRq7wNHs70BVSkjJiLIdyePfB3SmMCmeZeZyvd1xzfnc%27&connectionData=%255B%257B%2522name%2522%253A%2522alertshub%2522%257D%252C%257B%2522name%2522%253A%2522loggerhub%2522%257D%252C%257B%2522name%2522%253A%2522notificationhub%2522%257D%255D%26_%3D1522754518635
It has valid connectionToken(extracted) but not the connectionData.
Response is Unexpected character encountered while parsing value: %. Path '', line 0, position 0.
my question is how can i get this values, [{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}].
and next i need to post
POST //abc.com/Web/signalr/connect?transport=longPolling&clientProtocol=1.5&connectionToken=FcFUJytTeVDsNq4EM5iY59NrIlAO4EK0nU+P9fDasBFDTA+78kpLr05HaQoqstQouqyFMP2hShwh2eHdiG+CsRq7wNHs70BVSkjJiLIdyePfB3SmMCmeZeZyvd1xzfnc&connectionData=%5B%7B%22name%22%3A%22alertshub%22%7D%2C%7B%22name%22%3A%22loggerhub%22%7D%2C%7B%22name%22%3A%22notificationhub%22%7D%5D&_=1522754518635
as you can see here, it has valid connectionToken but not connectionData.
Response for this is : The ConnectionId is in the incorrect format.
BlazeMeter1
Blazemeter2
Blazemeter3
You need to use the same method as you have used for connection token.
It seems like your variable is not getting the required values. Are you using the same variables between two thread groups?
**-->Here request is encoded and connection data is also encoded.**
GET //abc.com/Web/signalr/negotiate?clientProtocol=1.5&connectionData=**%5B%7B%22name%22%3A%22alertshub%22%7D%2C%7B%22name%22%3A%22loggerhub%22%7D%2C%7B%22name%22%3A%22notificationhub%22%7D%5D**&_=1522754518635
and am getting the response connectionToken. i am able to extract connectionToken .
now, i need to send
**-->Here again encoded connection data is further encoded.**
GET //abc.com/Web/signalr/connect?transport=serverSentEvents&clientProtocol=1.5&tid=10&connectionToken=%27FcFUJytTeVDsNq4EM5iY59NrIlAO4EK0nU%2BP9fDasBFDTA%2B78kpLr05HaQoqstQouqyFMP2hShwh2eHdiG%2BCsRq7wNHs70BVSkjJiLIdyePfB3SmMCmeZeZyvd1xzfnc%27&connectionData=**%255B%257B%2522name%2522%253A%2522alertshub%2522%257D%252C%257B%2522name%2522%253A%2522loggerhub%2522%257D%252C%257B%2522name%2522%253A%2522notificationhub%2522%257D%255D%26**_%3D1522754518635
If I got it correct, then avoid encoding twice. In first and second screenshot you are encoding it twice.
If "connectionData" is fixed then try "User defined variables" or if it is available in some response then capture there using regular expression and use it further.
I hope you are not getting error during data extraction.
I’m trying to use the MailChimp - Search Members function. I want to use this action as a general search for retrieving members from all lists which match a query.
When I try the URI as formatted in the example:
https://us13.api.mailchimp.com/3.0/search-members?query=freddie#
I get the following error:
{"type":"https://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"An error occurred: Sorry, we're unable to search at the moment.","instance":""}
If I leave out the query parameter I receive the following error:
{"type":"https://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"Please provide 'query' parameter in the query string to search","instance":""}
So the method is available and my request URI is being parsed.
I conclude that the query parameter is incorrectly formed, however after extensive research I cannot find out how to format the query parameter.
This was an issue at Mail Chimp.
If you get it make a GET call to your root url e.g.
https://us13.api.mailchimp.com/3.0/
And send them your account Id along with the issue.
They can then reindex your lists.
Thanks anyone who invested time in this issue
See reply below.
J (MailChimp)
Jul 24, 5:49 PM EDT
Hey Dev, thanks so much for providing that info. I found the account and was able to replicate the error you are seeing - looks like it's account specific.
I reindexed your lists and then was able to make the same call successfully this time. If you do ever run across this issue again, that is likely what is going on. Shooting us an email or jumping in chats with this request will get it resolved in no time :)
Let me know if you are still experiencing that same error when making this call and I'll be happy to take another look, but you should be good to go at this point. Hope all is well, and have a great rest of your week!
============================================