Onairos
  • 🔮Welcome to Onairos
  • Installation
  • API Reference
  • LLM Memory SDK
  • 🖱️Developer Guides
    • Integrate Onairos Web
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Integrate Onairos Mobile
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Example Usage of Data
    • 🚤Coming Soon
    • Developer FAQ
    • Developer Debugging
  • Overview
    • 🦄Digital Personality
    • 🔐Security and Privacy
Powered by GitBook
On this page
  1. Developer Guides

Developer Debugging

We have inbuilt debugging logs for our API and npm package

PreviousDeveloper FAQNextDigital Personality

Last updated 1 year ago

Errors and Debugging

All Errors and Debugging from the Inference API will be of the form

    res.status(statusCode).send({ error: message }); 

Statuses of 200 are valid, and all others indicate potential issues

But here are common issues and solutions when integrating Onairos into your Application:

  1. Onairos Extension closes Immediately after Opening

    Please ensure you have registered your App domain in your Onairos developement account

  2. 'Refused to execute because it's MIME type (text/html)' or any similar warning like this:

The onairos package uses dynamic imports to reduce package size and improve performance on your applications, seeing this error means your app is not copying the import chunks (sha-256 and othent/kms) from the onairos node modules folder to your build folder

Solution:

If you are using webpack or similar builds, you can utilize react-app-rewired build and the followin override-config.js:

```jsx

module.exports = function override(config, env) {
    // Do not run this configuration while in development mode
    if (env === 'development') {
        return config;
    }

    // Add the CopyPlugin to the list of plugins
    config.plugins = (config.plugins || []).concat([
        new CopyPlugin({
            patterns: [
                // Adjust the from path to the actual path of the onairos chunks in your node_modules
                { from: 'node_modules/onairos/dist/*.chunk.js', to: 'static/js/[name].[ext]' },
            ],
        }),
    ]);

    return config;
};
  

🖱️