Skip to content

An error occured during route handling or page rendering. #15

@kewp

Description

@kewp

I got an error on first attempt to view localhost:8000:

An error occured during route handling or page rendering.

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at parse (<anonymous>)
    at packageData (ext:deno_fetch/22_body.js:369:14)
    at consumeBody (ext:deno_fetch/22_body.js:246:12)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async callApi (file:///Users/karl/tmp/fresh-wordpress-themes/blog/utils/wp.ts:49:11)
    at async getPages (file:///Users/karl/tmp/fresh-wordpress-themes/blog/utils/wp.ts:63:19)
    at async Promise.all (index 0)
    at async GET (file:///Users/karl/tmp/fresh-wordpress-themes/blog/routes/index.tsx:26:62)
    at async https://deno.land/x/[email protected]/mod.ts:228:22
    at async Server.#respond (https://deno.land/[email protected]/http/server.ts:298:18)

I should mentioned I needed to change docker-compose.yml to use port 8080:80 since my port 80 is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions