Nick Mills-Barrett
c3b85e8e3c
client: add special error that indicates to retry canceled contexts
...
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
On it's own this is useless since the retries would all immediately
fail with the canceled context error. The caller is expected to also
set a `UpdateRequestOnRetry` on the client which is used to swap out
the context.
2025-11-26 10:55:36 +00:00
Tulir Asokan
c50460cd6e
client: add response size limits
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-10-18 13:54:14 +02:00
Brad Murray
572a704b04
errors: Add M_WRONG_ROOM_KEYS_VERSION ( #419 )
2025-10-18 05:42:01 -04:00
Tulir Asokan
77682fb292
bridgev2,error: use NonNilClone instead of creating map manually
2025-10-01 14:48:11 +03:00
Toni Spets
cf814a5aaa
error: Add RespError WithExtraData convenience function ( #416 )
...
To dynamically build errors with extra keys like returning `max_delay`
for `M_MAX_DELAY_EXCEEDED`.
2025-09-22 13:30:08 +03:00
Nick Mills-Barrett
4ffe1d23e9
client: don't attempt to make requests if the homeserver URL isn't set ( #376 )
...
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
Quick guard for where the client is created without using the
`NewClient` method.
2025-05-07 14:19:01 +01:00
Tulir Asokan
f33b0506d0
client: add some nil safety
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-03-12 19:48:05 +02:00
Tulir Asokan
1cc073cde6
client: add wrapper method for MSC2815
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-02-23 18:13:09 +02:00
Tulir Asokan
918ed4bf23
error: don't include path in HTTP errors
...
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
The request data is logged anyway, so it's nicer if the error string
only has the important part.
2024-12-19 23:34:02 +02:00
Tulir Asokan
e17cb83855
error: ignore RespError.Write calls with nil writer
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-10-20 19:44:13 +03:00
Tulir Asokan
1f7f489fa9
hicli: allow storing errors in media cache
2024-10-08 23:44:06 +03:00
Tulir Asokan
65364d0133
error: add MUnknown
2024-09-13 01:38:18 +03:00
Tulir Asokan
36ef69bf7f
error: remove pointer receiver from Write
...
Otherwise it can't be chained after WithMessage
2024-09-13 01:36:38 +03:00
Tulir Asokan
012aed97e3
error: add WithMessage and Write helpers
2024-09-13 01:33:34 +03:00
Tulir Asokan
48b08ad8e9
errors: add status codes to predefined error variables
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-10 23:30:07 +03:00
Tulir Asokan
fb87a6851e
bridgev2/provisioning: allow network connectors to return custom HTTP errors
2024-08-10 23:26:05 +03:00
Tulir Asokan
79af7f968a
Adjust default HTTPError stringifying
2023-06-14 14:49:46 +03:00
Tulir Asokan
560407b794
Stabilize MSC2659 support
2023-05-05 14:46:27 +03:00
Tulir Asokan
267ff3613a
Fix RespError.MarshalJSON mutating ExtraData
2023-04-26 19:31:05 +03:00
Tulir Asokan
c036250731
Implement MSC2659
2023-03-11 16:29:35 +02:00
Milton Moura
605b989b2d
added room hierarchy related response structs, the M_INVALID_PARAM error and a wrapper for the GET /v1/rooms/:roomid/hierarchy endpoint
2022-10-31 12:21:46 -01:00
Tulir Asokan
fae6bb0b81
Add M_UNRECOGNIZED variable
2022-10-15 13:30:54 +03:00
Tulir Asokan
a64afd0fe6
Run gofmt with Go 1.19 for godocs
2022-08-04 11:37:35 +03:00
Tulir Asokan
0eee489b64
Switch to /v3 paths everywhere
2022-04-17 12:59:34 +03:00
Tulir Asokan
495d77b3a0
Merge branch 'master' into cross-sign
2020-10-27 00:38:52 +02:00
Tulir Asokan
4da8e38b4a
Add nil check to HTTPError.Is
2020-10-12 18:21:39 +03:00
Tulir Asokan
b40ab761fa
More changes
2020-09-12 01:32:56 +03:00
Tulir Asokan
6b480ab7d2
Update error system
2020-09-11 02:29:12 +03:00