dify icon indicating copy to clipboard operation
dify copied to clipboard

Error providing an image

Open 74sistemas opened this issue 1 year ago • 9 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

Dify version

0.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

✔️ Expected Behavior

No response

❌ Actual Behavior

answer-placeholder-1729802138035 is not a valid uuid. The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

74sistemas avatar Oct 24 '24 20:10 74sistemas

Hello, @74sistemas! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve this issue.

I couldn't find specific information about the "answer-placeholder-1729802138035 is not a valid uuid" error in Dify version 0.10.1. However, Dify validates UUIDs using the is_valid_uuid function, which checks if a string can be converted into a valid UUID. If the string does not conform to the standard UUID format, it is considered invalid [1].

For the internal server error, Dify typically logs the error and returns a structured response indicating an internal server error. This could be due to various reasons, such as misconfigurations or unexpected exceptions [2][3].

You might want to check the following:

  1. Ensure that the UUID being used is correctly formatted.
  2. Verify your server configuration and logs for any specific error messages that might provide more context.
  3. Consider updating to the latest version if possible, as it might contain fixes for known issues.

If you encounter similar issues, you might find related discussions helpful, such as the one about a 500 Internal Server Error when uploading a file, which was resolved by removing local images and redeploying [4].

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Oct 24 '24 20:10 dosubot[bot]

Please provide the DSL as well.

crazywoola avatar Oct 25 '24 00:10 crazywoola

I have encountered the same problem as you, have you solved it?

Erincrying avatar Oct 25 '24 01:10 Erincrying

Also ask, send pictures error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

boboboss avatar Oct 25 '24 05:10 boboboss

I encountered this problem too,the error log: self.created_by_role = created_by_role.value AttributeError: 'str' object has no attribute 'value'

lokiwizard avatar Oct 25 '24 08:10 lokiwizard

I try to remove the dify-api-0.10.1 image and pull the image again, this problem can be solved.

lokiwizard avatar Oct 25 '24 10:10 lokiwizard

Please provide the DSL as well.

`app: description: teste icon: 🤖 icon_background: '#FFEAD5' mode: advanced-chat name: teste use_icon_as_answer_icon: false kind: app version: 0.1.2 workflow: conversation_variables: [] environment_variables: [] features: file_upload: allowed_file_extensions: - .JPG - .JPEG - .PNG - .GIF - .WEBP - .SVG allowed_file_types: - image allowed_file_upload_methods: - local_file - remote_url enabled: true image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url number_limits: 1 opening_statement: '' retriever_resource: enabled: false sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: sourceType: start targetType: llm id: 1729801617106-llm source: '1729801617106' sourceHandle: source target: llm targetHandle: target type: custom - data: sourceType: llm targetType: answer id: llm-answer source: llm sourceHandle: source target: answer targetHandle: target type: custom nodes: - data: desc: '' selected: false title: Iniciar type: start variables: [] height: 53 id: '1729801617106' position: x: 80 y: 282 positionAbsolute: x: 80 y: 282 sourcePosition: right targetPosition: left type: custom width: 243 - data: context: enabled: false variable_selector: [] desc: '' memory: role_prefix: assistant: '' user: '' window: enabled: false size: 10 model: completion_params: temperature: 0.7 mode: chat name: gpt-4o-mini provider: openai prompt_template: - id: 2a8c3eb1-30d0-4a54-a931-c5844270c921 role: system text: 'sua função é pedi uma imagem do equipamento fotográfico e extrair as informações:

        Marca, Modelo, Tipo de equipamento'
    selected: false
    title: LLM
    type: llm
    variables: []
    vision:
      configs:
        detail: high
        variable_selector:
        - sys
        - files
      enabled: true
  height: 97
  id: llm
  position:
    x: 380
    y: 282
  positionAbsolute:
    x: 380
    y: 282
  sourcePosition: right
  targetPosition: left
  type: custom
  width: 243
- data:
    answer: '{{#llm.text#}}'
    desc: ''
    selected: false
    title: Resposta
    type: answer
    variables: []
  height: 102
  id: answer
  position:
    x: 680
    y: 282
  positionAbsolute:
    x: 680
    y: 282
  sourcePosition: right
  targetPosition: left
  type: custom
  width: 243
viewport:
  x: 195.60096271748455
  y: 72.02864938709189
  zoom: 0.7663099801038916

`

74sistemas avatar Oct 25 '24 11:10 74sistemas

Please try removing version 0.10.1 images and pull them again.

laipz8200 avatar Oct 26 '24 07:10 laipz8200

will wait for a new update considering that it still needs a lot of adjustments. I appreciate your attention.

74sistemas avatar Oct 26 '24 13:10 74sistemas