[GH-ISSUE #192] Can't acces Sketch after Picture link added #3645

Open
opened 2026-07-12 09:11:44 -05:00 by GiteaMirror · 15 comments
Owner

Originally created by @Oscious on GitHub (Jun 21, 2026).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/192

Hello, i used Flowsint for the first time.
I created my first sketch, started adding things, doing custom types etc.

And when i added a picture link to a social media entity, it stopped working and when i reload it show that:

Image

I could recreate the sketch since it was only an hour of searches, but if the issue could be studied it could be great))

Thanks!!!

Originally created by @Oscious on GitHub (Jun 21, 2026). Original GitHub issue: https://github.com/reconurge/flowsint/issues/192 Hello, i used Flowsint for the first time. I created my first sketch, started adding things, doing custom types etc. And when i added a picture link to a social media entity, it stopped working and when i reload it show that: <img width="1907" height="1022" alt="Image" src="https://github.com/user-attachments/assets/5e857fc3-6857-40fb-a59f-814ee8894ad1" /> I could recreate the sketch since it was only an hour of searches, but if the issue could be studied it could be great)) Thanks!!!
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

Hey @Oscious,

Could you check web console for errors ? So I can debug quickly and you don't have to loose your investigation :)

<!-- gh-comment-id:4762173596 --> @dextmorgn commented on GitHub (Jun 21, 2026): Hey @Oscious, Could you check web console for errors ? So I can debug quickly and you don't have to loose your investigation :)
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

yeah here, but it's looong

here is the docker error

` [EventEmitter] Client disconnected from sketch_id: 4028e336-02b4-44ed-826e-fa6ab6f29f50

INFO: - "GET /api/sketches/4028e336-02b4-44ed-826e-fa6ab6f29f50/graph?format= HTTP/1.1" 500 Internal Server Error

ERROR: Exception in ASGI application

Traceback (most recent call last):

File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi

result = await app(  # type: ignore[func-returns-value]

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call

return await self.app(scope, receive, send)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1159, in call

await super().__call__(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/applications.py", line 90, in call

await self.middleware_stack(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in call

raise exc

File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in call

await self.app(scope, receive, _send)

File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 88, in call

await self.app(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 63, in call

await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app

raise exc

File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

File "/app/.venv/lib/python3.12/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call

await self.app(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 660, in call

await self.middleware_stack(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 680, in app

await route.handle(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 276, in handle

await self.app(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 134, in app

await wrap_app_handling_exceptions(app, request)(scope, receive, send)

File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app

raise exc

File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 120, in app

response = await f(request)

           ^^^^^^^^^^^^^^^^

File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 674, in app

raw_response = await run_endpoint_function(

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 328, in
run_endpoint_function

return await dependant.call(**values)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/flowsint-api/app/api/routes/sketches.py", line 199, in get_sketch_nodes

return service.get_graph(UUID(sketch_id), current_user.id, format)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/flowsint-core/src/flowsint_core/core/services/sketch_service.py", line 130, in get_graph

graph_data = graph_service.get_sketch_graph()

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/flowsint-core/src/flowsint_core/core/graph/service.py", line 144, in get_sketch_graph

nodes = GraphSerializer.deserialize_nodes(

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 213, in deserialize_nodes

GraphSerializer.neo4j_dict_to_graph_node(

File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 115, in neo4j_dict_to_graph_node

entity = GraphSerializer.parse_flowsint_type(

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 82, in parse_flowsint_type

return DetectedType(**cleaned_props)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 263, in init

validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

pydantic_core._pydantic_core.ValidationError: 1 validation error for SocialAccount

username

Field required [type=missing, input_value={'id': 'patrick.pilsa@Tik..., 'is_suspended': False}, input_type=dict]

For further information visit https://errors.pydantic.dev/2.13/v/missing`
<!-- gh-comment-id:4762179534 --> @Oscious commented on GitHub (Jun 21, 2026): yeah here, but it's looong here is the docker error > ` [EventEmitter] Client disconnected from sketch_id: 4028e336-02b4-44ed-826e-fa6ab6f29f50 INFO: - "GET /api/sketches/4028e336-02b4-44ed-826e-fa6ab6f29f50/graph?format= HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1159, in __call__ await super().__call__(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/applications.py", line 90, in __call__ await self.middleware_stack(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__ raise exc File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 88, in __call__ await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app raise exc File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/app/.venv/lib/python3.12/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 660, in __call__ await self.middleware_stack(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 680, in app await route.handle(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 134, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app raise exc File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 120, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 674, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 328, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/flowsint-api/app/api/routes/sketches.py", line 199, in get_sketch_nodes return service.get_graph(UUID(sketch_id), current_user.id, format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/flowsint-core/src/flowsint_core/core/services/sketch_service.py", line 130, in get_graph graph_data = graph_service.get_sketch_graph() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/flowsint-core/src/flowsint_core/core/graph/service.py", line 144, in get_sketch_graph nodes = GraphSerializer.deserialize_nodes( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 213, in deserialize_nodes GraphSerializer.neo4j_dict_to_graph_node( File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 115, in neo4j_dict_to_graph_node entity = GraphSerializer.parse_flowsint_type( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/flowsint-core/src/flowsint_core/core/graph/serializer.py", line 82, in parse_flowsint_type return DetectedType(**cleaned_props) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 263, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for SocialAccount username Field required [type=missing, input_value={'id': 'patrick.pilsa@Tik..., 'is_suspended': False}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing`
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

I just pushed a mini fix, can you :

git pull
make prod #or make dev

And let me know if the problem persists

<!-- gh-comment-id:4762216466 --> @dextmorgn commented on GitHub (Jun 21, 2026): I just pushed a mini fix, can you : ``` git pull make prod #or make dev ``` And let me know if the problem persists
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

Image

maybe my fault, i'm on windows so i didn't do
make prod
but i just redo docker compose like at the instalation
i did
git pull docker compose -f docker-compose.prod.yml up -d
sorry to bother u with this

<!-- gh-comment-id:4762235965 --> @Oscious commented on GitHub (Jun 21, 2026): <img width="1507" height="932" alt="Image" src="https://github.com/user-attachments/assets/e5b6af46-5c21-4289-b8a4-12188e489773" /> maybe my fault, i'm on windows so i didn't do `make prod` but i just redo docker compose like at the instalation i did `git pull docker compose -f docker-compose.prod.yml up -d ` sorry to bother u with this
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

No problem :) do you still have the error in flowsint-api ?
Can you you show the browser dev tools console ? You can access with f12 then "Console" and look for errors

<!-- gh-comment-id:4762253789 --> @dextmorgn commented on GitHub (Jun 21, 2026): No problem :) do you still have the error in flowsint-api ? Can you you show the browser dev tools console ? You can access with f12 then "Console" and look for errors
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

Image

and when i reload the page only these appear

Image
<!-- gh-comment-id:4762259166 --> @Oscious commented on GitHub (Jun 21, 2026): <img width="1387" height="862" alt="Image" src="https://github.com/user-attachments/assets/0cec9b0f-c71e-4835-9384-50ec169b3b3f" /> and when i reload the page only these appear <img width="1382" height="275" alt="Image" src="https://github.com/user-attachments/assets/3dd21121-631b-43d9-9eca-a941b9420aa4" />
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

Seems you still have the same error, let me see. What is the latest type you tried to insert ? is it SocialAccount ?

<!-- gh-comment-id:4762263266 --> @dextmorgn commented on GitHub (Jun 21, 2026): Seems you still have the same error, let me see. What is the latest type you tried to insert ? is it `SocialAccount` ?
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

yes it was a SocialAccount, it's not when i added it, but when i saw that i could put an image on it, so i put the same link as in the individual parameter, it showed the picture like it should, but then it stopped working(((

<!-- gh-comment-id:4762284014 --> @Oscious commented on GitHub (Jun 21, 2026): yes it was a SocialAccount, it's not when i added it, but when i saw that i could put an image on it, so i put the same link as in the individual parameter, it showed the picture like it should, but then it stopped working(((
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

So I suspect that you inserted a SocialAccount without a usename associated with it, and you reloaded the graph at some point. The image you set is not the issue to me it's just the trigger.

I should have set the SocialAccount with non required Username.

Could you try again ?

git pull --rebase
docker restart flowsint-api-prod
<!-- gh-comment-id:4762380885 --> @dextmorgn commented on GitHub (Jun 21, 2026): So I suspect that you inserted a SocialAccount without a usename associated with it, and you reloaded the graph at some point. The image you set is not the issue to me it's just the trigger. I should have set the SocialAccount with non required Username. Could you try again ? ```bash git pull --rebase docker restart flowsint-api-prod ```
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

i'm sure i added a username it was the purpose, i'll try what u said thanks)))

<!-- gh-comment-id:4762389400 --> @Oscious commented on GitHub (Jun 21, 2026): i'm sure i added a username it was the purpose, i'll try what u said thanks)))
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

Image

)))

i might just start a new one

<!-- gh-comment-id:4762399972 --> @Oscious commented on GitHub (Jun 21, 2026): <img width="910" height="817" alt="Image" src="https://github.com/user-attachments/assets/713c11d7-0700-4cad-b385-35786129fa46" /> ))) i might just start a new one
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

We can switch to discord if you need better assistance

<!-- gh-comment-id:4762410867 --> @dextmorgn commented on GitHub (Jun 21, 2026): We can switch to discord if you need better assistance
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

it's okay thanks, i'll just create a new one and i won't add a picture)))

thanksss

<!-- gh-comment-id:4762412882 --> @Oscious commented on GitHub (Jun 21, 2026): it's okay thanks, i'll just create a new one and i won't add a picture))) thanksss
Author
Owner

@Oscious commented on GitHub (Jun 21, 2026):

can i by any way export my old sketch so i can gather the things i already did?

<!-- gh-comment-id:4762417669 --> @Oscious commented on GitHub (Jun 21, 2026): can i by any way export my old sketch so i can gather the things i already did?
Author
Owner

@dextmorgn commented on GitHub (Jun 21, 2026):

I can help you recover it, feel free to join the Discord and ping me 👍🏻

<!-- gh-comment-id:4762629732 --> @dextmorgn commented on GitHub (Jun 21, 2026): I can help you recover it, feel free to join the Discord and ping me 👍🏻
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/flowsint#3645