Tag: instagram api

无法加载资源:net :: ERR_CONNECTION_REFUSED仅适用于来自instagram API的选择性图像

我目前正在向Instagram API发出GET请求以获取带有特定标记的一堆照片,并将我在Rails中获得的JSON对象返回给JS中的调用者,并使用img链接和缩略图等设置HTML。在DOM中。 奇怪的是,重新启动我的服务器后,我收到此错误: Failed to load resource: net::ERR_CONNECTION_REFUSED 仅适用于Instagram API返回的部分但不是全部照片。 var formdata = {tag: “myflsadventure”}; $.ajax({ url: “application/get_instagram_photos”, type: “POST”, datatype: ‘json’, data: formdata, success: function(response){ htmlz = “”; count = 0; rounded_style = ” style=’border:1px solid #; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px;'” $.each(response.data, function(i, item) { if (count == 0 ){ htmlz += […]