Code Monkey home page Code Monkey logo

Comments (8)

shridarpatil avatar shridarpatil commented on August 15, 2024 1

@ccfiel can you send us traceback it will help us to debug

from frappe-attachments-s3.

shridarpatil avatar shridarpatil commented on August 15, 2024

@jvfiel can you tell us how you are sending an attachment?

from frappe-attachments-s3.

jvfiel avatar jvfiel commented on August 15, 2024

@shridarpatil via ERPNext compose mail

from frappe-attachments-s3.

shridarpatil avatar shridarpatil commented on August 15, 2024

@jvfiel can you send a screenshot?

from frappe-attachments-s3.

ccfiel avatar ccfiel commented on August 15, 2024

Hello @shridarpatil
I made a screen record.
ezgif-5-daf5c5314ed2

Hope that helps

Cheers,
Chris

from frappe-attachments-s3.

ccfiel avatar ccfiel commented on August 15, 2024

@shridarpatil this is the traceback

  File "/home/frappe/tailerp02/apps/frappe/frappe/app.py", line 62, in application
    response = frappe.handler.handle()
  File "/home/frappe/tailerp02/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/tailerp02/apps/frappe/frappe/handler.py", line 53, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/tailerp02/apps/frappe/frappe/__init__.py", line 939, in call
    return fn(*args, **newargs)
  File "/home/frappe/tailerp02/apps/frappe/frappe/core/doctype/communication/email.py", line 86, in make
    add_attachments(comm.name, attachments)
  File "/home/frappe/tailerp02/apps/frappe/frappe/core/doctype/communication/email.py", line 410, in add_attachments
    "Home/Attachments", attach.is_private)
  File "/home/frappe/tailerp02/apps/frappe/frappe/utils/file_manager.py", line 102, in save_url
    f.insert();
  File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 242, in insert
    self.run_method("after_insert")
  File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 757, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 1026, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 1011, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "/home/frappe/tailerp02/apps/frappe_s3_attachment/frappe_s3_attachment/controller.py", line 188, in file_upload_to_s3
    file_path, doc.file_name, doc.is_private, parent_doctype, parent_name
  File "/home/frappe/tailerp02/apps/frappe_s3_attachment/frappe_s3_attachment/controller.py", line 90, in upload_files_to_s3_with_key
    mime_type = magic.from_file(file_path, mime=True)
  File "/home/frappe/tailerp02/env/local/lib/python2.7/site-packages/magic.py", line 136, in from_file
    return m.from_file(filename)
  File "/home/frappe/tailerp02/env/local/lib/python2.7/site-packages/magic.py", line 86, in from_file
    with open(filename):
IOError: [Errno 2] No such file or directory: u'./wela.tailerp.com/api/method/frappe_s3_attachment.controller.generate_file?key=wela/2018/11/09/Salary Slip/CZDPK3IZ_pc2f0e9b'  ```

from frappe-attachments-s3.

ccfiel avatar ccfiel commented on August 15, 2024

Hello @shridarpatil any idea what cause this? :)

from frappe-attachments-s3.

sameer55chauhan avatar sameer55chauhan commented on August 15, 2024

Facing the same issue, any update on the same??

from frappe-attachments-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.