Code Monkey home page Code Monkey logo

unity-asset-store-api's Introduction

Stats

54 68 65 72 65 20 61 72 65 20 6E 6F 20 45 61 73 74 65 72 20 45 67 67 73 20 75 70 20 68 65 72 65 2E 20 47 6F 20 61 77 61 79 2E

unity-asset-store-api's People

Contributors

mukaschultze avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

unity-asset-store-api's Issues

Invoice Rejected

I'm having a little trouble verifying the invoice. The token and the publisher ID were supplied as described:

const unityToken = process.env.UNITY_TOKEN //from kharma_session
const publisherID = process.env.PUBLISHER_ID // from the publisher public profile
const storeClient = new AssetStoreClient(unityToken, publisherID, {
    timeout: 60000
});

But after calling:

storeClient.verifyInvoice(invoice)
                .then(() => message.channel.send('Invoice verified with success!'))
                .catch(reason => {
                    message.channel.send('Invalid code.')
                    console.log(`Invoice Rejected: ${reason}`)
                })

it gives me the following message:

Invoice Rejected: StatusCodeError: 401 - "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>401 Authorization Required</title>\n</head><body>\n<h1>Authorization Required</h1>\n<p>This server could not verify that you\nare authorized to access the document\nrequested. Either you supplied the wrong\ncredentials (e.g., bad password), or your\nbrowser doesn't understand how to supply\nthe credentials required.</p>\n</body></html>\n"

The invoice is also a valid code since I have checked on the publisher page.

Using Node 14.3.0 with Windows 10.

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.