Skip to content

Instantly share code, notes, and snippets.

@dysbulic
Created February 7, 2021 03:21
Show Gist options
  • Save dysbulic/e25a3c659f4cdccd03e9fd5481740483 to your computer and use it in GitHub Desktop.
Save dysbulic/e25a3c659f4cdccd03e9fd5481740483 to your computer and use it in GitHub Desktop.
@fenrir$~/code/identitylink-services/packages/server: sls offline --host 0.0.0.0
simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3
Serverless: Deprecation warning: Detected ".env" files. Note that Framework now supports loading variables from those files when "useDotenv: true" is set (and that will be the default from next major release)
More Info: https://www.serverless.com/framework/docs/deprecations/#LOAD_VARIABLES_FROM_ENV_FILES
Serverless: Deprecation warning: Starting from next major object notation for "service" property will no longer be recognized. Set "service" property directly with service name.
More Info: https://www.serverless.com/framework/docs/deprecations/#SERVICE_OBJECT_NOTATION
Serverless: DOTENV: Loading environment variables from .env:
Serverless: - VERIFICATION_ISSUER_DOMAIN
Serverless: - KEYPAIR_PUBLIC_KEY
Serverless: - KEYPAIR_PRIVATE_KEY
Serverless: - CERAMIC_CLIENT_URL
Serverless: - REDIS_URL
Serverless: - REDIS_PASSWORD
Serverless: - GITHUB_PERSONAL_ACCESS_TOKEN
Serverless: - TWITTER_CONSUMER_KEY
Serverless: - TWITTER_CONSUMER_SECRET
Serverless: - TWITTER_ACCESS_TOKEN
Serverless: - TWITTER_ACCESS_TOKEN_SECRET
Serverless: - SEGMENT_WRITE_KEY
Serverless: Deprecation warning: Starting with next major version, default value of provider.lambdaHashingVersion will be equal to "20201221"
More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2
Serverless: Deprecation warning: Starting with next major version, API Gateway naming will be changed from "{stage}-{service}" to "{service}-{stage}".
Set "provider.apiGateway.shouldStartNameWithService" to "true" to adapt to the new behavior now.
More Info: https://www.serverless.com/framework/docs/deprecations/#AWS_API_GATEWAY_NAME_STARTING_WITH_SERVICE
Serverless: Bundling with Webpack...
Time: 2504ms
Built at: 02/06/2021 10:10:51 PM
Asset Size Chunks Chunk Names
src/api_handler.js 2.55 MiB 0 src/api_handler
Entrypoint src/api_handler = src/api_handler.js
[64] /home/will/code/identitylink-services/node_modules/@stablelib/random/lib/random.js 3.1 KiB {0} [built]
[128] /home/will/code/identitylink-services/node_modules/node-fetch/lib/index.mjs 40.1 KiB {0} [built]
[132] ./src/lib/store.js 1.17 KiB {0} [built]
[333] ./src/api_handler.js 4.66 KiB {0} [built]
[334] ./src/api/github-request.js 1.22 KiB {0} [built]
[335] ./src/api/github-verify.js 2.04 KiB {0} [built]
[336] ./src/api/twitter-request.js 1.23 KiB {0} [built]
[337] ./src/api/twitter-verify.js 2.11 KiB {0} [built]
[338] ./src/api/discord-verify.js 1.89 KiB {0} [built]
[339] ./src/api/diddoc.js 785 bytes {0} [built]
[340] ./src/lib/githubMgr.js 3.11 KiB {0} [built]
[357] ./src/lib/twitterMgr.js 3 KiB {0} [built]
[505] ./src/lib/discordMgr.js 1.29 KiB {0} [built]
[506] ./src/lib/claimMgr.js 3.1 KiB {0} [built]
[770] ./src/lib/analytics.js 2.2 KiB {0} [built]
+ 806 hidden modules
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ERROR in /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm
WebAssembly module is included in initial chunk.
This is not allowed, because WebAssembly download and compilation must happen asynchronous.
Add an async splitpoint (i. e. import()) somewhere between your entrypoint and the WebAssembly module:
* ./src/api_handler.js --> ./src/lib/claimMgr.js --> /home/will/code/identitylink-services/node_modules/@ceramicnetwork/http-client/lib/ceramic-http-client.js --> /home/will/code/identitylink-services/node_modules/@ceramicnetwork/doctype-caip10-link/lib/index.js --> /home/will/code/identitylink-services/node_modules/@ceramicnetwork/doctype-caip10-link/lib/caip10-link-doctype-handler.js --> /home/will/code/identitylink-services/node_modules/3id-blockchain-utils/lib/index.js --> /home/will/code/identitylink-services/node_modules/3id-blockchain-utils/lib/blockchains/filecoin.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm
* ... --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm
* ... --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm
* ... --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.js --> /home/will/code/identitylink-services/node_modules/@zondax/filecoin-signing-tools/browser/filecoin_signer_wasm_bg.wasm
Serverless: Watching for changes...
Serverless: Starting Offline: develop/us-west-2.
Serverless: Routes for diddoc:
Serverless: GET /.well-known/did.json
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-diddoc/invocations
Serverless: Routes for request-github:
Serverless: POST /api/v0/request-github
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-request-github/invocations
Serverless: Routes for verify-github:
Serverless: POST /api/v0/confirm-github
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-verify-github/invocations
Serverless: Routes for request-twitter:
Serverless: POST /api/v0/request-twitter
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-request-twitter/invocations
Serverless: Routes for verify-twitter:
Serverless: POST /api/v0/confirm-twitter
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-verify-twitter/invocations
Serverless: Routes for verify-discord:
Serverless: POST /api/v0/confirm-discord
Serverless: POST /{apiVersion}/functions/threebox-verification-service-v2-develop-verify-discord/invocations
Serverless: Offline [HTTP] listening on http://0.0.0.0:3000
Serverless: Enter "rp" to replay the last request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment