Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #636

    terrence
    Participant

    Something broken? Feel free to report here and get help from Trive community! Here is a simple template to ease debug process:

    What is not working:
    Expected behavior:
    Code snippet / URL:
    Browser console output log:

    Please be specific as much as possible to avoid unnecessary assumptions.

    • This topic was modified 5 months, 4 weeks ago by  triveAdmin.
    • This topic was modified 5 months, 4 weeks ago by  triveAdmin.
    • This topic was modified 5 months, 3 weeks ago by  triveAdmin.
    #685

    vivek
    Participant

    this is my local IP : http://192.168.3.135:3009/
    i have started node. i got console “Server listening on port 3009” in terminal

    but when i click on Login/Pay button. nothing happen.
    Please let me what wrong in my code.

    #689

    Catseow1995
    Participant

    Hi There,

    What is not working: Im having a problem with the developer testing on Bizstore. I tried on HTML and it works fine and Ive double checked on the needed codes and SDK. But when I converted into .bcml, it seems not to be found on Bizstore.
    Expected behavior: This is a snake game that only need frontend and doesn’t required any backend.
    Code snippet / URL: https://github.com/Tide2816/90-s-Snake-Game.git

    Thank you so much and I hope for your quick response.

    #690

    nimeish
    Participant

    this is my local IP : http://192.168.3.135:3009/
    i have started node. i got console “Server listening on port 3009” in terminal

    but when i click on Login/Pay button. nothing happen.
    Please let me what wrong in my code

    #692

    nimeish
    Participant

    index.js filr:
    ==========
    const express = require(“express”);
    const bodyParser = require(“body-parser”);
    const BizApp = require(“bizapp”);

    const app = express();
    const biz = BizApp({
    appId: “YOUR_APP_ID_HERE”
    });

    // Allow cross origin
    app.use(function(req, res, next) {
    res.header(“Access-Control-Allow-Origin”, “*”);
    res.header(“Access-Control-Allow-Headers”, “Origin, X-Requested-With, Content-Type, Accept”);
    next();
    });

    // Parse body
    app.use(bodyParser.urlencoded({ extended: true }));

    var loginHandler = biz.Express({}, (result, response) => {
    if (result.err) {
    console.log(“User failed to log in, error: ” + result.err);
    return response.send({});
    }

    var userData = {
    id: 10,
    name: “John Doe”
    };
    console.log(“User logged in! Address:” + result.address);
    response.send(userData);
    });

    app.post(“/api/login”, loginHandler);

    app.post(“/api/verify”, (req, res) => {
    var options = {
    trxId: “de224c99af5e1b7ec368f126c1c255344d58477c6f366ff0e60502b439807b69”,
    toAddress: “TWpWX8BozztxYMc8AEPtXfLtADGUzf7xiG”,
    amount: 900000276,
    minConfirmations: 6
    };

    biz.verify(options, (error, result) => {
    if (!error && result) {
    console.log(“Valid payment”);
    } else {
    console.log(“Invalid payment”);
    }
    });

    res.send(“OK”);
    });

    // Listen
    app.listen(3009, () => console.log(“Server listening on port 3009”));

    • This reply was modified 6 months, 1 week ago by  nimeish.
    #695

    nimeish
    Participant

    this is my .bcml file
    second screenshot with .bcml extension

    i have posted above index.js file and this is function in .bcml file . Please let me what is wrong in my both file.

    • This reply was modified 6 months, 1 week ago by  nimeish.
    • This reply was modified 6 months, 1 week ago by  nimeish.
    • This reply was modified 6 months, 1 week ago by  nimeish.
    Attachments:
    You must be logged in to view attached files.
    #715

    richelle0406
    Participant

    I wonder why my masternode has not been create trvc for me in past 4days. My IP is still the same as created..

    #757

    bizappTech
    Participant

    @vivek Please make sure your server is accessible through https. 192.168.3.135 is a local IP which we can’t access. For better assistance, please show us your client and server side code handling the login/pay functions.

    • This reply was modified 6 months, 1 week ago by  bizappTech.
    • This reply was modified 6 months, 1 week ago by  bizappTech.
    • This reply was modified 6 months, 1 week ago by  bizappTech.
    #760

    bizappTech
    Participant

    @catseow1995 your bizapp will require approval before it is visible on Bizstore. I have checked with Bizapp approval team, there are a few amendments still pending on your snake game.

    #764

    bizappTech
    Participant

    @nimeish :
    1. At your server code, replace YOUR_APP_ID_HERE with “DEV” during development period. Use your actual app id once it is ready to go live. Please refer to https://bizstore.io/docs/references/server_api/
    2. Your client side is not connecting to the correct endpoint. Your login request was sent to http://192.168.3.135:3000/api/login , payment was sent to http://192.168.3.135:8000/api/verify , meanwhile your server is listening on http://192.168.3.135:3009

    • This reply was modified 6 months, 1 week ago by  bizappTech.
    #766

    bizappTech
    Participant

    @richelle0406 this section is dedicated for bizapp tech question only

    #796

    Catseow1995
    Participant

    I have already update my snake game app yesterday morning. Please update me on the issue. Thank you

    #802

    bizappTech
    Participant

    @catseow1995 , 90’s Snake Game has been approved, congratulations!

    #886

    Catseow1995
    Participant

    Hey there,

    I have submitted an app called “Donut Cup” and it seems not to be responding in terms of the screens,
    But it has been working well on Mac Safari, Windows and also Android Mobile too.

    Can you help us as we have triple checked the codes and its working well.

    Please advice thank you so much.

    Attachments:
    You must be logged in to view attached files.
    #889

    Catseow1995
    Participant

    Hey there,

    Not only that, we are able to play the game on android and also web browser. But why it cannot be used on IOS ?

Viewing 15 posts - 1 through 15 (of 17 total)

The topic ‘Template for error reporting’ is closed to new replies.