I do recall seeing "Cannot modify header information - headers already sent" in the past.
I checked my logs and don't see it there, but I will keep an eye on it.
If you save https://rockcelebrities.net/wp-content/ ... l-2021.jpg locally and look at the content, you will see it is actually a WEBP file (not PNG/JPEG/JPG). I had no idea that only PNG, JPEG, and JPG formats were supported. Perhaps I can add code to verify the file format before calling the API, but this probably would not be any better than the API giving you the same error.
There also seems to be an issue with the actual API as it is not failing the request properly. I'll have to investigate and probably report a bug.
You're right, it's easy to forget to add new channels to the Discord CDN proxy. Currently, it will return a 400 status code with a message explaining what's wrong. See: https://github.com/privet-fun/phpbb_ail ... n.php#L121. In the browser, it will look like a broken link, so you can kind of guess what's going on. If you look at the Dev Tools in the browser under the Network tab, you will see a bunch of 400 responses and can see the actual errors as well. I'm not really sure how to do it better, so I'm open to all suggestions. I initially wanted to pull a list of all channels from the bot configs but later realized that now I'm storing all the configuration on the API side, so that will not work.
Most of those Discord bots (excluding Midjourney) lack good documentation or examples on how to use them. Often they post documentation directly on Discord, making it inaccessible without a Discord account whereas the API typically has better documentation. Here's a good example: https://useapi.net/docs/api-faceswap-v1 ... quest-body. However this is probably a bit too technical to show to users (to most users anyway).
To address this I had to create an entire section on my forum https://privet.fun/viewforum.php?f=43, where I created one topic per bot with all the documentation and examples. Each bot also has a link in the signature section to the same topic. It feels like a lot of work honestly but without good help it would not be of much use.
I'm currently looking to add a music generation bot to the mix. I asked the useapi folks if they would consider adding one. It would be nice to keep using the same API for all my needs, but I'm looking for other options too.
Thank you for all the notes, I really value your input!
I checked my logs and don't see it there, but I will keep an eye on it.
If you save https://rockcelebrities.net/wp-content/ ... l-2021.jpg locally and look at the content, you will see it is actually a WEBP file (not PNG/JPEG/JPG). I had no idea that only PNG, JPEG, and JPG formats were supported. Perhaps I can add code to verify the file format before calling the API, but this probably would not be any better than the API giving you the same error.
There also seems to be an issue with the actual API as it is not failing the request properly. I'll have to investigate and probably report a bug.
You're right, it's easy to forget to add new channels to the Discord CDN proxy. Currently, it will return a 400 status code with a message explaining what's wrong. See: https://github.com/privet-fun/phpbb_ail ... n.php#L121. In the browser, it will look like a broken link, so you can kind of guess what's going on. If you look at the Dev Tools in the browser under the Network tab, you will see a bunch of 400 responses and can see the actual errors as well. I'm not really sure how to do it better, so I'm open to all suggestions. I initially wanted to pull a list of all channels from the bot configs but later realized that now I'm storing all the configuration on the API side, so that will not work.
Good point. I mostly added it for my own purposes as I was getting lost between all the new bots and also wanted to make sure that the correct API method is called (e.g., /animate vs /create) and to provide a help link with details on what parameters are used, etc. I'll see if this can be made customizable.A tiny request for the next version - the {info} tag now includes links to useapi pages, which may be useful for admins and devs but not so much for users. Could that info be a separate tag, please? I'd like to keep the actual available commands of course (like for Midjourney) but not the useapi links...
Most of those Discord bots (excluding Midjourney) lack good documentation or examples on how to use them. Often they post documentation directly on Discord, making it inaccessible without a Discord account whereas the API typically has better documentation. Here's a good example: https://useapi.net/docs/api-faceswap-v1 ... quest-body. However this is probably a bit too technical to show to users (to most users anyway).
To address this I had to create an entire section on my forum https://privet.fun/viewforum.php?f=43, where I created one topic per bot with all the documentation and examples. Each bot also has a link in the signature section to the same topic. It feels like a lot of work honestly but without good help it would not be of much use.
I'm currently looking to add a music generation bot to the mix. I asked the useapi folks if they would consider adding one. It would be nice to keep using the same API for all my needs, but I'm looking for other options too.
Thank you for all the notes, I really value your input!
Statistics: Posted by privet.fun — Sat Jul 06, 2024 7:56 pm