Closed cjslep closed 3 years ago
be7f23bde7ec5d7d52c58269ba66148bca9e613f adds a new ErrNotFound
error that handlers will return when they retrieve no data.
6cbfb30afa479a47ce1beeb99300f2cba07cf619 enables clients to use a Scheme
variant of PostInbox
, PostOutbox
, and handlers if they wish. Otherwise, existing implementations will keep the existing https
only behavior.
These two changes will require a minor version bump for next release.
472d90163f3ab6912c5d19fe4965745f24fcfb3a Also adds the methods to the Actor
interface.
Please Describe The Problematic Behavior
Been developing on
apcore
, which when a binary is ran with the-dev
flag everything is run ashttp
. This means new actors, data, and activities, are created withhttp
identifiers, and the server does not run a HTTPS variant. This allows easy local development without generating test HTTPS certificates.The library is middleware for the app framework.
Tracked down a
nil
exception topub/handlers.go:61
due to the database returning nothing.pub/handlers.go:61
hast
asnil
. TherequestId
call improperly always assumeshttps
.https://github.com/go-fed/apcore/blob/master/framework/router.go#L431
The handler, when serializing, dereferences a
nil
.Please Describe The Expected Behavior
requestId
is able to usehttp
and dereference. Also, the handler should be able to handle the "404 Not Found" case.