-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send attachment functionality in Chat not working #105
Comments
Hi @snehc please share the code snippet how you get a |
I am calling this send Attachment function and then all the functions I am defining here also line wise - -
}
These are the functions I am using for send attachment in chat. |
Hi @snehc.
|
Hi Kachanov.
I am getting this issue in 3rd point. |
@snehc |
Yes it is working. BUt I am not getting what is the issue in my code I am also calling the same function. |
@snehc |
Yes by doing that I am getting all my chat history and able to do conversation. |
This is definitely something with file picking Here is what I recommend to try:
|
Hi Dave, I am implementing VideoCalling of Connectycube but when start calling getting these warnings and not able to proceed further -
Can you help me out in finding where I am doing wrong? |
@snehc please create a separated issue for this as it's a diff one |
hey, @snehc did you solved the file uploading issue? |
Hi, No it still not resolved for me. |
Hi'
I'm using connectyCube version 2.0.0 and react native version 0.60.2 and i
dont know how to resolve this issue I'm tired of this
…On Wed, Sep 16, 2020, 2:38 PM snehc ***@***.***> wrote:
Hi,
No it still not resolved for me.
I just wanted to confirm could there be any issue with the versions of
react-native and connectycube library?
As I am using - "react-native": "0.62.2" and "react-native-connectycube":
"^3.6.0"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3X376W4RJMFUH6LY7RXPTSGB57TANCNFSM4PYRGQTQ>
.
|
Closed due to inactivity. Please create a new issue if needed. |
Hi Team,
I am using this ConnectyCube library for chat. But when I am trying to send attachment I am getting issue and not able to understand what is the exact issue in this. Can you please help me out in getting it resolved?
Here is the issue I am facing- "TypeError: undefined is not an object (evaluating 'response.url')"
[Sat Aug 08 2020 13:34:32.985] LOG {"prepareAttachment": {"height": 400, "name": "ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "size": 71620, "type": "image/jpeg", "uid": "file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "url": "file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "width": 300}}
[Sat Aug 08 2020 13:34:32.986] LOG {"file": {"caption": "", "duration": null, "height": 400, "name": "ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "path": "file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "size": 71620, "type": "image/jpeg", "uri": "file://file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "width": 300}}
[Sat Aug 08 2020 13:34:32.987] LOG [Request][5] POST https://api.connectycube.com/blobs.json {"data": {"blob": {"content_type": "image/jpeg", "name": "ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg"}}, "type": "POST", "url": "https://api.connectycube.com/blobs.json"}
[Sat Aug 08 2020 13:34:33.961] LOG [Response][5] {"blob": {"account_id": 3316, "app_id": 2595, "blob_object_access": {"blob_id": 343785, "expires": "2020-08-08T09:04:33Z", "id": 343785, "object_access_type": "Write", "params": "https://s3.amazonaws.com/cb-shared-s3?Content-Type=image%2Fjpeg&Expires=Sat%2C%2008%20Aug%202020%2009%3A04%3A33%20GMT&acl=authenticated-read&key=0e2f7092e9a64b5ebd7a805c48367ed600&policy=eyJleHBpcmF0aW9uIjoiMjAyMC0wOC0wOFQwOTowNDozM1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJjYi1zaGFyZWQtczMifSx7ImFjbCI6ImF1dGhlbnRpY2F0ZWQtcmVhZCJ9LHsiQ29udGVudC1UeXBlIjoiaW1hZ2UvanBlZyJ9LHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjoiMjAxIn0seyJFeHBpcmVzIjoiU2F0LCAwOCBBdWcgMjAyMCAwOTowNDozMyBHTVQifSx7ImtleSI6IjBlMmY3MDkyZTlhNjRiNWViZDdhODA1YzQ4MzY3ZWQ2MDAifSx7IngtYW16LWNyZWRlbnRpYWwiOiJBS0lBSUczV1BUN1JBTFlPWlc2US8yMDIwMDgwOC91cy1lYXN0LTEvczMvYXdzNF9yZXF1ZXN0In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1kYXRlIjoiMjAyMDA4MDhUMDgwNDMzWiJ9XX0%3D&success_action_status=201&x-amz-algorithm=AWS4-HMAC-SHA256&x-amz-credential=AKIAIG3WPT7RALYOZW6Q%2F20200808%2Fus-east-1%2Fs3%2Faws4_request&x-amz-date=20200808T080433Z&x-amz-signature=f568225bf93ec1ccd68bb5618ccd68be8fce9872c05e3dab68c6e8ae2428b298"}, "blob_status": null, "content_type": "image/jpeg", "created_at": "2020-08-08T08:04:33Z", "id": 343785, "name": "ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "public": false, "set_completed_at": null, "size": null, "uid": "0e2f7092e9a64b5ebd7a805c48367ed600", "updated_at": "2020-08-08T08:04:33Z"}}
[Sat Aug 08 2020 13:34:33.975] LOG [Request][6] POST https://s3.amazonaws.com/cb-shared-s3 {"contentType": false, "data": {"Content-Type": "image/jpeg", "Expires": "Sat, 08 Aug 2020 09:04:33 GMT", "acl": "authenticated-read", "file": {"caption": "", "duration": null, "height": 400, "name": "ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "path": "file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "size": 71620, "type": "image/jpeg", "uri": "file://file:///storage/emulated/0/Android/data/com.instantpeople/files/Pictures/ea15c4bd-b7fd-4727-a8df-3534b92a4b06.jpg", "width": 300}, "key": "0e2f7092e9a64b5ebd7a805c48367ed600", "policy": "eyJleHBpcmF0aW9uIjoiMjAyMC0wOC0wOFQwOTowNDozM1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJjYi1zaGFyZWQtczMifSx7ImFjbCI6ImF1dGhlbnRpY2F0ZWQtcmVhZCJ9LHsiQ29udGVudC1UeXBlIjoiaW1hZ2UvanBlZyJ9LHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjoiMjAxIn0seyJFeHBpcmVzIjoiU2F0LCAwOCBBdWcgMjAyMCAwOTowNDozMyBHTVQifSx7ImtleSI6IjBlMmY3MDkyZTlhNjRiNWViZDdhODA1YzQ4MzY3ZWQ2MDAifSx7IngtYW16LWNyZWRlbnRpYWwiOiJBS0lBSUczV1BUN1JBTFlPWlc2US8yMDIwMDgwOC91cy1lYXN0LTEvczMvYXdzNF9yZXF1ZXN0In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1kYXRlIjoiMjAyMDA4MDhUMDgwNDMzWiJ9XX0=", "success_action_status": "201", "x-amz-algorithm": "AWS4-HMAC-SHA256", "x-amz-credential": "AKIAIG3WPT7RALYOZW6Q/20200808/us-east-1/s3/aws4_request", "x-amz-date": "20200808T080433Z", "x-amz-signature": "f568225bf93ec1ccd68bb5618ccd68be8fce9872c05e3dab68c6e8ae2428b298"}, "dataType": "text", "type": "POST", "url": "https://s3.amazonaws.com/cb-shared-s3"}
[Sat Aug 08 2020 13:34:35.615] LOG [Response][6]
[Sat Aug 08 2020 13:34:35.735] WARN Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not an object (evaluating 'response.url')
processAjaxError@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:154640:21
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:154618:36
tryCallOne@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:28865:16
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:28966:27
_callTimer@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:32405:17
_callImmediatesPass@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:32441:19
callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:32659:33
callImmediates@[native code]
__callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2719:35
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2505:34
__guard@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2702:15
flushedQueue@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2504:21
flushedQueue@[native code]
callFunctionReturnFlushedQueue@[native code]
I think this is some issue coming from backend side.
Please let me know if you need more information to understand this problem.
Although I am following all the steps mentioned in the help document. But I thing the issue is coming when I am calling “ConnectyCube.storage.createAndUpload({ file })” this function.
The text was updated successfully, but these errors were encountered: