Skip to content

Commit

Permalink
wip-fix: log client fetch error
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen committed Apr 15, 2024
1 parent d57bae2 commit 546db9e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
12 changes: 0 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ resolver = "2"

members = [
"rs/bin/openstream",

"rs/config/constants",

"rs/packages/openapi",
"rs/packages/ip-counter",
"rs/packages/macros",
Expand All @@ -38,14 +36,10 @@ members = [
"rs/packages/upload",
"rs/packages/api",
"rs/packages/api2",

"rs/packages/mp3",

"rs/packages/http",

"rs/packages/channels",
"rs/packages/db",

"rs/packages/validate",
"rs/packages/user-agent",
"rs/packages/spsc",
Expand All @@ -63,22 +57,16 @@ members = [
"rs/packages/lang-util",
"rs/packages/test-macros",
"rs/packages/test-util",

"rs/packages/proxy-protocol",
"rs/packages/geoip",
"rs/packages/lang",

"rs/packages/mailer",

"rs/packages/payments",

"rs/packages/modify",
"rs/packages/modify_derive",

"rs/packages/metre",
"rs/packages/metre-macros",
]

[patch.crates-io]
# bson = { path = "./rs/patches/bson" }
ts-rs = { path = "./rs/patches/ts-rs/ts-rs" }
2 changes: 1 addition & 1 deletion front/packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstream/client",
"version": "0.3.1",
"version": "0.3.2",
"description": "Openstream Radio Server Client",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions front/packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class Client {
...init
}).catch(e => {
// this.logger.warn(`fetch error: ${e} | cause=${e.cause}`)
console.warn("client fetch failed", e, e.cause ?? null);
throw new ClientError(StatusCode.BAD_GATEWAY, "CLIENT_GATEWAY_FETCH", "Gateway unavailable")
})
}
Expand Down
14 changes: 7 additions & 7 deletions front/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@openstream/client": "^0.3.1",
"@openstream/client": "^0.3.2",
"accept-language-parser": "^1.5.0",
"braintree": "^3.15.0",
"commander": "^9.4.1",
Expand Down
2 changes: 1 addition & 1 deletion front/server/src/locale/misc/misc.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const locale = {
Relay: "Relay",
Settings_updated: "Settings updated",
Master_relay: "Master relay",
Enable_master_relay: "Enable_master_relay",
Enable_master_relay: "Enable master relay",
Master_Relay_URL: "Master Relay URL",
Save: "Save",
delete_station_not_owner_message_html: "Only account administrators can delete stations.<br/><br/>Contact the account administrators if you want to delete this station.",
Expand Down

0 comments on commit 546db9e

Please sign in to comment.