Skip to content

Importing spin sdk requires inbound-http #1687

@nicolamos

Description

@nicolamos

I need to build an application that is triggered by a timer and I used the spin-timer example as a starting point. Then I need to publish messages on a redis channel.
Importing redis from spin_sdk results in the following error.

Logging component stdio to ".spin/logs/"
Error: Failed to instantiate component 'three'

Caused by:
    0: failed to validate exported interface `fermyon:spin/inbound-http`
    1: module does not export required function `fermyon:spin/inbound-http#handle-request`

In order to test this, I just added

use spin_sdk::redis;

in lib.rs of the app-example under spin-timer.
I tried to add also an http_component (without declaring it in the manifest) and the error does not appear.

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions