-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import users due to a webhook/API throttling #13891
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Update: 2023-11-16 14:15:48] production.ERROR: Too few arguments to function App\Importer\ItemImporter::fetchManager(), 1 passed in /var/www/html/app/Importer/UserImporter.php on line 64 and exactly 2 expected {"userId":1,"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function App\Importer\ItemImporter::fetchManager(), 1 passed in /var/www/html/app/Importer/UserImporter.php on line 64 and exactly 2 expected at /var/www/html/app/Importer/ItemImporter.php:348)#1 /var/www/html/app/Importer/UserImporter.php(31): App\Importer\UserImporter->createUserIfNotExists() |
This is fixed on master. |
Initially I receive the error Snipe-IT Erroe-model_id The model id field is required. Them Snipe-IT Erroe-category_id The category id field is required. After correcting I have received new error "Your file import is complete, but we did receive an error. This is usually caused by third-party API throttling from a notification webhook (such as Slack) and would not have interfered with the import itself, but you should confirm this." OS - Windows 10 Pro I have uploaded both screenshot. Kindly help me to resolve these issue. Thanks & Regards, |
Debug mode
Describe the bug
Importing Users does not work on my local Docker installation. I have tried with both my own formatted CSV data and the documentation's sample data and neither work as intended.
Reproduction steps
Expected behavior
Users should be imported and added to the database.
Screenshots
No response
Snipe-IT Version
6.2.3
Operating System
Ubuntu
Web Server
Apache
PHP Version
8.1.2
Operating System
Mac Os Monterey
Browser
Chrome
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
The warning message that appears after import is as follows: Your file import is complete, but we did receive an error. This is usually caused by third-party API throttling from a notification webhook (such as Slack) and would not have interfered with the import itself, but you should confirm this. With debug on, there is no error message. I noticed after I turned debug on, the import files that were already uploaded would "import" successfully, but it does not actually add any users to the database. When uploading a fresh copy of the sample users csv, I get the API throttle message again, however.
Additional context
This is a nearly-fresh install on a Docker compose basically following the guide one-to-one. The Importer imported and added a csv of assets without issues, but I cannot get it to work for Users at all. There is no Slack integration enabled and no webhooks or any other settings that could cause issues on at this moment.
The text was updated successfully, but these errors were encountered: