Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free triallubossytensky
3,160 PointsCan't connect to the webpage treehouseworkshop
Can't connect to the webpage treehouseworkshop
In the end of Setting up the imgur api video I run the application and I connect to the imgur page after i clicked on button "sign in".
After the fill my account the page asked me to open browser and see "web page is not available"
"err name not resolved"
And URL is on treehouseworkshop:88
I fiil this URL in my account on imgur site in my profile. What is strange for me. I never used REDIRECT_URL in application
What did i missed? Plesase help me. Thank tou.
el
3 Answers
Seth Kroger
56,414 PointsThe intent filter looks fine. Also make sure you have the code mentioned here: https://teamtreehouse.com/community/missing-code
Seth Kroger
56,414 PointsMake sure the intent filter you added to the manifest matches and there are no typos in the host/port entered there.
lubossytensky
3,160 Points@Seth thanks for raction. I have to add intent filter in manifest? I missed something about Jamie talked it in video? I have Jamie starter android project and in manifest is only
<intent-filter> <action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:scheme="https"
android:host="treehouseworkshop"
android:port="88"
android:pathPattern="/.*"/>
</intent-filter>
and I did't change it.
In my Imgur interface I have
public interface Imgur {
String IMGUR_BASE_URL = "https://api.imgur.com";
String IMGUR_CLIENT_ID = "xxxxxxxxxxxxxx";
String AUTHORIZATION_URL = "https://api.imgur.com/oauth2/authorize?client_id=" + IMGUR_CLIENT_ID + "&response_type=token";
String REDIRECT_URL = "https://treehouseworkshop:88";
interface Auth{
@GET("3/account/{username}/images/{page}")
Call <Basic <ArrayList<Image>>> images(@Path("username")String username,
@Path("page")int page);
}
}
and REDIRECT_URL is gray. Never used in project. Thanks for help!
el
lubossytensky
3,160 Pointslubossytensky
3,160 PointsSeth Kroger Thank YOU!!! that was it!