visual-knight / platform-community-edition Goto Github PK
View Code? Open in Web Editor NEWOpen source platform of Visual Knight (Community Edition)
Open source platform of Visual Knight (Community Edition)
When I send image around 100 KB
Example image
Error
api_1 | [Nest] 19 - 04/09/2020, 9:40 PM [ExceptionsHandler] request entity too large +47937ms
api_1 | PayloadTooLargeError: request entity too large
api_1 | at readStream (/api/node_modules/raw-body/index.js:155:17)
api_1 | at getRawBody (/api/node_modules/raw-body/index.js:108:12)
api_1 | at read (/api/node_modules/body-parser/lib/read.js:77:3)
api_1 | at jsonParser (/api/node_modules/body-parser/lib/types/json.js:135:5)
api_1 | at Layer.handle [as handle_request] (/api/node_modules/express/lib/router/layer.js:95:5)
api_1 | at trim_prefix (/api/node_modules/express/lib/router/index.js:317:13)
api_1 | at /api/node_modules/express/lib/router/index.js:284:7
api_1 | at Function.process_params (/api/node_modules/express/lib/router/index.js:335:12)
api_1 | at next (/api/node_modules/express/lib/router/index.js:275:10)
api_1 | at expressInit (/api/node_modules/express/lib/middleware/init.js:40:5)
Temp workaround
https://stackoverflow.com/questions/52783959/nest-js-request-entity-too-large-payloadtoolargeerror-request-entity-too-larg
I guess it should be implemented as configuration setting
Steps:
Actual result: nothing happens
Warning in console
[Nest] 8552 - 03/21/2020, 8:21 PM [JwtService] "secretOrPrivateKey" has been deprecated, please use the new explicit "secret" or use "secretOrKeyProvider" or "privateKey"/"publicKey" exclusively.
Looks like it's thrown when user session get's expired
Cannot reproduce for empty project
Steps
Error
core.js:9110 ERROR Error: Uncaught (in promise): Error: GraphQL error:
Invalid `prisma.project.delete()` invocation in
/api/webpack:/apps/api/src/app/project/project.service.ts:20:45
Error occurred during query execution:
InterpretationError("Error for binding \'3\': RelationViolation(RelationViolation { relation_name: \"ProjectToTest\", model_a_name: \"Project\", model_b_name: \"Test\" })")
Error: GraphQL error:
Invalid `prisma.project.delete()` invocation in
/api/webpack:/apps/api/src/app/project/project.service.ts:20:45
Error occurred during query execution:
InterpretationError("Error for binding \'3\': RelationViolation(RelationViolation { relation_name: \"ProjectToTest\", model_a_name: \"Project\", model_b_name: \"Test\" })")
at new ApolloError (bundle.esm.js:63)
at Object.next (bundle.esm.js:1004)
at notifySubscription (Observable.js:130)
at onNotify (Observable.js:165)
at SubscriptionObserver.next (Observable.js:219)
at bundle.esm.js:866
at Set.forEach (<anonymous>)
at Object.next (bundle.esm.js:866)
at notifySubscription (Observable.js:130)
at onNotify (Observable.js:165)
at SubscriptionObserver.next (Observable.js:219)
at Object.next (bundle.esm.js:29)
at notifySubscription (Observable.js:130)
at onNotify (Observable.js:165)
at SubscriptionObserver.next (Observable.js:219)
at resolvePromise (zone-evergreen.js:797) [angular]
at polyfills-es2015.js:3556:17 [angular]
at SafeSubscriber._error (Observable.js:91) [angular]
at SafeSubscriber.__tryOrUnsub (Subscriber.js:185) [angular]
at SafeSubscriber.error (Subscriber.js:137) [angular]
at Subscriber._error (Subscriber.js:75) [angular]
at Subscriber.error (Subscriber.js:55) [angular]
at vendor-es2015.js:167261:28 [angular]
at Object.onInvoke (core.js:34201) [angular]
at polyfills-es2015.js:3704:36 [angular]
Cannot reproduce if manually reload the page
Steps:
visual-knight-token
from local storageAtual result:
user is not redirected to login page
errors from API in console as token is not valid
OS: WIndows 10
node: v10.16.0
npm: 6.9.0
prisma2: 2.0.0-preview016.1
Similar issue in prisma2: prisma/prisma#1232
npm log
PS C:\xxx> npm i
> [email protected] postinstall C:\xxx
> npm run generate:photon
> [email protected] generate:photon C:\xxx
> cd libs/api-interface && prisma2 generate
Error: Problem while parsing the query engine response at C:\xxx\node_modules\prisma2\query-engine-windows.exe. Please wait until the 'prisma query-engine' download completes!
SyntaxError: Unexpected token P in JSON at position 0
at JSON.parse (<anonymous>)
at Object.<anonymous> (C:\xxx\node_modules\prisma2\build\index.js:114955:25)
at Generator.next (<anonymous>)
at fulfilled (C:\xxx\node_modules\prisma2\build\index.js:114913:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
Cannot reproduce if x-api-key
header is not provided in request - Unauthorised error thrown
Steps:
mutation {
invokeTestSession(
project: "any"
testname: "any"
autoBaseline: false
capabilities: {
browserName: "Chrome",
os: "Windows"
}
misMatchTolerance: 0.01
)
}
{
"x-api-key": "NOT_VALID"
}
Actual result:
No error is shown
Expected result:
Unauthorised error thrown
Core library keep throwing error
TypeError: Cannot read property 'misMatchTolerance' of null
at VisualKnightCore.<anonymous> (node_modules/@visual-knight/core/src/process-screenshot.ts:49:61)
at fulfilled (node_modules/@visual-knight/core/lib/process-screenshot.js:4:58)
Expected result:
Workaround for now
Set autoBaseline: true
- current image is taken as baseline
As it's now tests for all projects are shown regardless /test?project_id url param
Steps:
Actual result:
tests for all projects are shown
Expected result:
show tests only for specific project
@MitkoTschimev what do you think on this one?
was is as a part of functionality or it's something new?
should we also hide project filter in case project_id provided?
I am happy that the community is helping with this project and to bring better help for the PR's we need a QA pipeline which github actions will provide the easiest way
node v12.14.1
npm 6.13.4
Steps:
npm i
npx ng serve api
PS C:\work\platform-community-edition> npx ng serve api
Starting type checking service...
Using 6 workers with 2048MB memory limit
Type checking in progress...
Hash: 5875a0559989f54eca86
Built at: 04/07/2020 3:00:58 PM
Entrypoint main = main.js main.js.map
chunk {main} main.js, main.js.map (main) 107 KiB [entry] [rendered]
Debugger listening on ws://localhost:7777/7d635fbc-96ab-456f-af52-46b5df70172c
Debugger listening on ws://localhost:7777/7d635fbc-96ab-456f-af52-46b5df70172c
For help, see: https://nodejs.org/en/docs/inspector
[Nest] 20888 - 04/07/2020, 3:01 PM [NestFactory] Starting Nest application...
[Nest] 20888 - 04/07/2020, 3:01 PM [ExceptionHandler] Nest cannot export a provider/module that is not a part of the currently processed module (SharedModule). Please verify whether each exported unit is available in this particular context. +52ms
Error: Nest cannot export a provider/module that is not a part of the currently processed module (SharedModule). Please verify whether each exported unit is available in this particular context.
at Module.validateExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:251:19)
at Module.addCustomExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:235:43)
at Module.addExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:221:25)
at NestContainer.addExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\container.js:112:16)
at DependenciesScanner.insertExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:177:24)
at C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:104:50
at Array.forEach (<anonymous>)
at DependenciesScanner.reflectExports (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:104:17)
at DependenciesScanner.scanModulesForDependencies (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:57:18)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.