diff --git a/apps/api/README.md b/apps/api/README.md index c0d6b09fd..a80890e10 100644 --- a/apps/api/README.md +++ b/apps/api/README.md @@ -10,7 +10,6 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html). - ## Learn more - Official website: https://www.phoenixframework.org/ diff --git a/apps/api/lib/buildel/blocks/browser.ex b/apps/api/lib/buildel/blocks/browser.ex index d327d9eb5..9cbe735d9 100644 --- a/apps/api/lib/buildel/blocks/browser.ex +++ b/apps/api/lib/buildel/blocks/browser.ex @@ -76,6 +76,7 @@ defmodule Buildel.Blocks.Browser do end defp url(url, state) do + url = url |> String.trim() state = send_stream_start(state) uri = URI.parse(url) diff --git a/apps/api/lib/buildel/blocks/document_search.ex b/apps/api/lib/buildel/blocks/document_search.ex index 189c2dafd..0967f2b9d 100644 --- a/apps/api/lib/buildel/blocks/document_search.ex +++ b/apps/api/lib/buildel/blocks/document_search.ex @@ -320,6 +320,8 @@ defmodule Buildel.Blocks.DocumentSearch do result |> Enum.map(&DocumentSearchJSON.show(&1)) |> Jason.encode!() + rescue + _ -> "Could not return record" end defp do_parent(state, chunk_id) do