Code Monkey home page Code Monkey logo

ost-wallet-sdk-react-native's People

Contributors

akshayraje avatar ankit-yadv avatar ashutoshlodhi avatar bala007 avatar benjaminbollen avatar preshitashirke avatar sachin-chauhan-dev avatar shraddhapatilost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ost-wallet-sdk-react-native's Issues

SESSION_NOT_FOUND in EXECUTE_TRANSACTION Android

{"error_code": "SESSION_NOT_FOUND", "error_info": {}, "error_message": "The device doesn't has any active session. Please authorize a session before doing any transaction. Workflow details provided at https://dev.ost.com/platform/docs/sdk/references ", "internal_error_code": "km_ts_st_2", "is_api_error": 0}

I have authorize my android device and trying to execute transaction but it throw error.
it's working in iOS but not in android.
2020-02-11

Token Holder is either logging out or already logged out.

I have try to clear all ost session

OstWalletSdk.logoutAllSessions(
userId,
this.workflowCallback
)

but sdk Interrupt the flow and say

{
"api_error": {
"code": "UNPROCESSABLE_ENTITY",
"error_data": [],
"internal_id": "a_s_s_mo_l_4",
"msg": "Token Holder is either logging out or already logged out."
},
"error_code": "API_RESPONSE_ERROR",
"error_info": {
"err": {
"code": "UNPROCESSABLE_ENTITY",
"error_data": [Array
],
"internal_id": "a_s_s_mo_l_4",
"msg": "Token Holder is either logging out or already logged out."
},
"success": false
},
"error_message": "Token Holder is either logging out or already logged out.",
"internal_error_code": "UNPROCESSABLE_ENTITY",
"is_api_error": true
}

OstWalletSdk.activateUser() Spending limit provided is invalid. Spending limit should be in atto BT and can not be decimal value. Please inspect the value being sent is correct and not null, rectify and re-submit

{
"error_code": "INVALID_SESSION_SPENDING_LIMIT",
"error_message": "Spending limit provided is invalid. Spending limit should be in atto BT and can not be decimal value. Please inspect the value being sent is correct and not null, rectify and re-submit.",
"internal_error_code": "w_au_vp_2",
"is_api_error": false
}

executeTransaction nothing happen

I have trying to executeTransaction but nothing happen. sdk can't return completed or Interruped response

`export function executeTransaction(userId, tokenHolderAddresses, amounts, transactionType, meta) {
return (dispatch) => {

    let workflowCallback = new OstWalletWorkFlowCallback();
    workflowCallback.flowComplete = (workflowContext, contextEntity) => {
        console.log("flowComplete");
        console.log("workflowContext: ", workflowContext.WORKFLOW_TYPE);
        console.log("executeTransaction: ", contextEntity);
        dispatch(getBalance());

    };
    workflowCallback.flowInterruped = (workflowContext, { error }) => {
        console.log("flowInterruped");
        console.log("workflowContext: ", workflowContext.WORKFLOW_TYPE);
        console.log("error: ", error);
    };
    OstWalletSdk.executeTransaction(
        userId,
        tokenHolderAddresses,
        amounts,
        transactionType,
        meta,
        workflowCallback
    )
}

}`

Spending limit provided is invalid.

{"error_code": "INVALID_SESSION_SPENDING_LIMIT", "error_message": "Spending limit provided is invalid. Spending limit should be in atto BT and can not be decimal value. Please inspect the value being sent is correct and not null, rectify and re-submit.", "internal_error_code": "w_au_vp_2", "is_api_error": false}

Manifest merger failed : Attribute application@networkSecurityConfig

Manifest merger failed : Attribute application@networkSecurityConfig value=(@xml/network_security_config) from AndroidManifest.xml:15:7-67
is also present at [com.ost:ost-wallet-sdk-android:2.4.1] AndroidManifest.xml:26:18-82 value=(@xml/ost_network_security_config).
Suggestion: add 'tools:replace="android:networkSecurityConfig"' to element at AndroidManifest.xml:7:5-117 to override.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.