douwuli4512 2018-03-12 18:34
浏览 89

graph.facebook.com API没有IPv6主机的路由

Steps required to reproduce the problem I have post the article data and it returns error. Expected Result Success Actual Result array(1) { ["error"]=> string(58) "Failed connect to graph.facebook.com:443; No route to host"

$news_content = $this->format_content($news_param->articls);
        $transformer->transformString($instant_article, $news_content, 'utf-8');
        try {
            $status['success'] = $ia_client->importArticle($instant_article, $is_published);
        } catch (Exception $e) {
            $status['error'] = $e->getMessage();
        }

and facebook instant article using: https://github.com/facebook/facebook-instant-articles-sdk-php

Reply from Dig:

sh-4.2# dig graph.facebook.com

; <<>> DiG 9.9.4-RedHat-9.9.4-50.el7_3.1 <<>> graph.facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60775
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;graph.facebook.com.            IN      A

;; ANSWER SECTION:
graph.facebook.com.     604800  IN      A       173.25.5.11

;; AUTHORITY SECTION:
com.                    604800  IN      NS      .

;; Query time: 0 msec
;; SERVER: 127.0.0.11#53(127.0.0.11)
;; WHEN: Mon Mar 12 18:49:28 UTC 2018
;; MSG SIZE  rcvd: 76

I think I should mention that this is running on a docker LAMP stack.

  • 写回答

1条回答 默认 最新

  • douhuan9289 2018-03-13 07:14
    关注

    I have stopped the bind server and redirected all dns traffic to google dns. Now everything is working fine. Anyways, thank you guys for the suggestions.

    评论

报告相同问题?

悬赏问题

  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条