Sometimes errors occur, but we are here to help! This guide covers some of the most common issues we’ve seen and how you can resolve them. However, this guide isn’t meant to be a comprehensive collection of every Ryzenth API V1 issue. For more help with troubleshooting your issue, try:
import cron from 'node-cron';
cron.schedule('*/2 * * * *', () => {
fetch('https://x-api-js.onrender.com/ping')
.then(response => {
console.log('Pinged service:', response.status);
})
.catch(error => {
console.error('Error pinging service:', error.message);
});
});
- Allowed Domains configuration settings
export const AllowedDomainList = [
"https://x-api-js.onrender.com",
"https://randydev-ryu-js.hf.space",
"https://ryzenth.randydev.my.id"
];
- Swagger Document
- Now check
/docs
/**
* @swagger
* /api/v1/dl/something:
* get:
* summary: Template Title
* tags: [ALL-Downloader]
* parameters:
* - in: query
* name: query
* required: true
* description: null
* schema:
* type: string
* responses:
* 200:
* description: Success
* 400:
* description: Bad Request (e.g., missing or invalid URL)
* 401:
* description: Unauthorized (e.g., missing or invalid API key)
* 500:
* description: Internal Server Error
*/
Create file plugins/something.js
const TemplateRoutes = express.Router();
TemplateRoutes.get('/api/v1/dl/something', async (req, res) => {
try {
const { query } = req.query;
const result = await Something(query);
res.json({ results: result });
} catch (error) {
res.status(500).json({ error: error.message });
}
});
export { TemplateRoutes };
- Then add
TemplateRoutes
inindex.js
import { TemplateRoutes } from './plugins/something.js';
helper.AppendRoutes(app, TemplateRoutes);
We love your enthusiasm! Before submitting contributions, please check these guidelines:
- Fork this repository
- Create a feature branch (
git checkout -b cool-feature
) - Commit your changes (
git commit -m 'Add awesome feature'
) - Push to your branch (
git push origin cool-feature
) - Open a Pull Request to our
main
branch
- Discuss major changes in an Issue first
- Test thoroughly before submitting
- Keep code clean and well-documented
- Update relevant documentation
- Follow existing code style
Found a bug? Help us squash it:
- Check existing [Issues] for duplicates
- Use the Bug Report template
- Include:
- Version number
- Steps to reproduce
- Actual vs. Expected behavior
- Screenshots (if applicable)
New to the project? Look for these tags:
good-first-issue
- Perfect for beginners!documentation
- Great for non-coderstranslation
- Help localize the project
MIT License © 2025 Ryzenth Developers from TeamKillerX
Developed and maintained by @xtdevs and TeamKillerX