Skip to content

Instantly share code, notes, and snippets.

fetch("http://localhost:3000/content/encrypted.json")
.then(res => res.text())
.then(x => cjs.AES.decrypt(x, "iamapassword")
.toString(cjs.enc.Utf8))
.then(decryptedTxt => console.log(decryptedTxt));
function encryptMiddleware(req, res, next) {
console.log("Hello there");
console.log(res.body);
res.body = "";
next();
}
const router = express.Router();
router
TypeError: Cannot read property 'ctor' of undefined at Function.func (http://localhost:3000/js/Main.js:11594:16) at A3 (http://localhost:3000/js/Main.js:98:11) at Function.func (http://localhost:3000/js/Main.js:11781:16) at A2 (http://localhost:3000/js/Main.js:92:11) at Object.callback (http://localhost:3000/js/Main.js:1817:18) at step (http://localhost:3000/js/Main.js:2410:39) at work (http://localhost:3000/js/Main.js:2466:14)

The error is thrown in the default case in Javascript for the main case msg of bit of an update function (although the update function doesn't have an otherwise or _)

var _user$project$Page_ExercisePage$update = F3(
	function (context, msg, model) {
 update:
module Child exposing (init, update, subscriptions, view, Model, Msg(Dispatch), DispatchMsg(..))
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
type alias Model =
{ username : String
}
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"./app/elm",
"./app/packages/elm-hot-reload/src",
"./app/packages/couloir-core/src",
"./app/packages/couloir-exercise-renderer/src"
import Effects exposing (Effects)
type alias Model = {}
type Action
= Local Msg -- these are dealt with by this component
| Remove -- these are dealt with in update of the parent (by pattern matching against ThisComponent.Remove?)
dave@~/Projects/Couloir/ctp/ctp-elm-0.17/node_modules$ ls .bin
JSONStream cdl errno jade nopt sha.js umd
_mocha commonize escodegen jsesc notify shjs user-home
acorn cordova-test esgenerate json5 npm sshpk-conv uuid
appium-running dateformat esparse lessc opener sshpk-sign watchify
atob defs esvalidate leven pegjs sshpk-verify which
babel deps-sort exorcist marked rc strip-indent window-size
babel-external-helpers detect-indent fop miller-rabin
04-19 11:52:40.053 12684 12684 E AndroidRuntime: FATAL EXCEPTION: main
04-19 11:52:40.053 12684 12684 E AndroidRuntime: Process: com.clarityenglish.ctp, PID: 12684
04-19 11:52:40.053 12684 12684 E AndroidRuntime: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/animation/FastOutSlowInInterpolator;
04-19 11:52:40.053 12684 12684 E AndroidRuntime: at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67)
04-19 11:52:40.053 12684 12684 E AndroidRuntime: at org.xwalk.core.XWalkCoreWrapper.handlePostInit(XWalkCoreWrapper.java:157)
04-19 11:52:40.053 12684 12684 E AndroidRuntime: at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:306)
04-19 11:52:40.053 12684 12684 E AndroidRuntime: at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:277)
04-19 11:52:40.053 12684 12684 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:651)
04-19 11:52:4
[12008/14843] CXX obj/third_party/WebKit/Source/core/gen/blink/bindings/core/v8/webcore_generated.V8GeneratedCoreBindings14.o
FAILED: /usr/local/crosswalk/crosswalk-src/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MF obj/third_party/WebKit/Source/core/gen/blink/bindings/core/v8/webcore_generated.V8GeneratedCoreBindings14.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=257953-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_SUPERVISED_USERS=1 -DVIDEO_HOLE=1 -DENABLE_WEBVR -DSAFE_BROWSING_DB_REMOTE -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DE
(lots of stuff before the error...)
INFO: DownloError: Command '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' returned non-zero exit status 1 in /vagrant/crosswalk-src
ading package archive: newlib_i686.tgz (44/51)
INFO: Downloading package archive: newlib_i686_bc.tgz (45/51)
INFO: Downloading package archive: newlib_le32.tgz (46/51)
INFO: Downloading package archive: newlib_mipsel.tgz (47/51)
INFO: Downloading package archive: newlib_x86_64.tgz (48/51)
INFO: Downloading package archive: newlib_x86_64_bc.tgz (49/51)
INFO: Downloading package archive: unsandboxed_runtime_arm_linux.tgz (50/51)