Skip to content
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

sending any kind video attachment results in OAuthException: (#389) Unable to fetch video file from URL #65

Open
silvermace opened this issue Apr 21, 2018 · 0 comments

Comments

@silvermace
Copy link

silvermace commented Apr 21, 2018

REPRO: run example/server.py - I suspect the FB API has changed in some way as doing a REST call using CURL results in the same error?

  • I have checked that the asset URL is reachable by the public internet.
  • I have verified the Page Access Token is valid
  • I have tried the same REST request using CURL and another python bot framework

I am posting here as fbmq is the best maintained library so thought if there is a workaround or a that a change needs to be made, this is the most likely place it will be posted.

<REMOVED> identifying IDs/Tokens etc in this post.

{  
   "object":"page",
   "entry":[  
      {  
         "id":"<REMOVED>",
         "time":1524198913269,
         "messaging":[  
            {  
               "sender":{  
                  "id":"<REMOVED>"
               },
               "recipient":{  
                  "id":"<REMOVED>"
               },
               "timestamp":1524198912677,
               "message":{  
                  "mid":"<REMOVED>",
                  "seq":132537,
                  "text":"video",
                  "nlp":{  
                     "entities":{  
                        "bye":[  
                           {  
                              "confidence":0.0035418537522868,
                              "value":"true",
                              "_entity":"bye"
                           }
                        ],
                        "thanks":[  
                           {  
                              "confidence":0.00018130744237493,
                              "value":"true",
                              "_entity":"thanks"
                           }
                        ],
                        "greetings":[  
                           {  
                              "confidence":0.0296290972742,
                              "value":"true",
                              "_entity":"greetings"
                           }
                        ]
                     }
                  }
               }
            }
         ]
      }
   ]
}
Received message for user <REMOVED> and page <REMOVED> at <REMOVED> with message:
{  
   u'text':u'video',
   u'mid':u'mid.<REMOVED>',
   u'seq':132537,
   u'nlp':{  
      u'entities':{  
         u'bye':[  
            {  
               u'_entity':u'bye',
               u'confidence':0.0035418537522868,
               u'value':u'true'
            }
         ],
         u'thanks':[  
            {  
               u'_entity':u'thanks',
               u'confidence':0.00018130744237493,
               u'value':u'true'
            }
         ],
         u'greetings':[  
            {  
               u'_entity':u'greetings',
               u'confidence':0.0296290972742,
               u'value':u'true'
            }
         ]
      }
   }
}{  
   "error":{  
      "message":"(#389) Unable to fetch video file from URL.",
      "type":"OAuthException",
      "code":389,
      "fbtrace_id":"<REMOVED>"
   }
}

AFTER_SEND:
{  
   "message":{  
      "attachment":{  
         "payload":{  
            "url":"https://<REMOVED>/assets/allofus480.mov"
         },
         "type":"video"
      },
      "metadata":null,
      "quick_replies":null,
      "text":null
   },
   "notification_type":null,
   "recipient":{  
      "id":"<REMOVED>"
   },
   "sender_action":null,
   "tag":null
}RESPONSE:{  
   "error":{  
      "message":"(#389) Unable to fetch video file from URL.",
      "type":"OAuthException",
      "code":389,
      "fbtrace_id":"<REMOVED>"
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant