Skip to content

Fix coreNode error when fetching public data with no user session #802

Closed
@markmhendrickson

Description

@markmhendrickson

As first encountered with markmhendrickson/humans#12, I'm getting TypeError: Cannot read property 'coreNode' of undefined upon calling getFile and reaching: https://github.com/blockstack/blockstack.js/blob/950dc4fc838099835ce0592f245453c770663b84/src/storage/index.ts#L253

sessionData.userData is undefined and throws an error instead of getting to use caller.appConfig.coreNode

cc @zone117x since he appears to be the last person to touch this part of the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnwanted or unintended logic causing harm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions