-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error as "Invalid json in response body" #3
Comments
@yogesh-karpe You need to run protocol server yourself or you can use the pilot one provided by ondc. |
Where are details of ondc's pilot server? or how do we get api credentials? Thanks @risabhsharma71 @yogesh-karpe @ukrocks007 |
I have tried to get these details as well. |
@ukrocks007 Were you able to get the credentials of the pilot server? I need to start with implementing the app in real. |
Following |
Pilot server urls and all tech-details: |
Does Beckn specifications now come under ONDC? |
Please refer following code.
const instance = new ondc.ONDC({ "host": "http://localhost:5000", "action": "search", "bapId": "ondc.gofrugal.com/ondc/18275", "bapUri": "https://ondc.gofrugal.com/ondc/seller/adaptor", "bppId": "ondc.yaarilabs.com", "bppUri": "https://ondc.yaarilabs.com/", "domain": "nic2004:60232", "country": "IND", "city": "std:080", "ttl": "PT30S", "key": "<encryption key>", "signingPublicKey" : "<signing key>", "privateKey" : "<private key>", "uniqueKey" : "<uniqueKey>", "subscriberId" : "<subscriberId>" });
instance.apiKey = await instance.createAuthorizationHeader(body);
let result = await instance.search(body);
The text was updated successfully, but these errors were encountered: