Skip to content
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

[BUG] Run Mock.json stop working #1401

Open
amar0321 opened this issue Jan 20, 2025 · 3 comments
Open

[BUG] Run Mock.json stop working #1401

amar0321 opened this issue Jan 20, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@amar0321
Copy link

  • When try to run mock.json it always display these below 2 errors in notification bar:
  1. Table Book not found!
  2. This mock target not valid!
  • table already exists in db , mock.json working fine before but suddenly stops and all the selected setting are default.

  • Database type and version:
    identifier cweijan.vscode-database-client2
    Version 8.1.2
    Last Updated 2025-01-14, 14:25:02
    Size 13.8 MB

{
"table": "Book",
"mockStartIndex": "auto",
"mockCount": 10,
"mockValueReference": "http://mockjs.com/examples.html#DPD",
"mock": {
"id": {
"type": "INTEGER",
"value": "#mockIndex"
},
"title": {
"type": "CHAR(32)",
"value": "@string('lower',512)"
},
"author": {
"type": "CHAR(32)",
"value": "@string('lower',512)"
},
"database_name": {
"type": "CHAR(32)",
"value": "@string('lower',512)"
}
}
}

@amar0321 amar0321 added the bug Something isn't working label Jan 20, 2025
@amar0321
Copy link
Author

Image

@amar0321
Copy link
Author

Image

@amar0321
Copy link
Author

I checked version 8.1.0 working perfectly, after that version things being strange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant