fullstack-course1-module3's People
Forkers
rbramwell crmcclar hapu66 mcarlo emmanuelol davidm094 rtymoshenko m-sagi ashr81 jimbarron blanfus alpual abhijeetbhanjadeo robovoid arghz dabisa simoncal-saas mzalendo sb07 kmdinsmore scottlorimor adcaine moselim dmellop ltarassiouk rekeem jolled zmagod alejandrodrm sly777 kasiabm margareti ghadeertek prmoreira23 eeasterberg mseung jcoggins siriussnape sigudim davicar319 ct7ahx eduard82 sultanelerris alvarosct02 shayryan peakdrum mgibson8 demeshko vamsipavanmahesh dalegit github722105 samneogi boonchu rameshmeseth silentbeauty anvnguyen deafcat fokusnica guaponi webxico-mx stevenrojascr denisnurboja nthesingh faacy baljeet16 tanja1a chaloff shadows89 jlf122 danielpoehle winnersky mmacs langeds nicklaurence coolmars jrvilar atakwale pbarua ssa3975 nouh-sabri shadrack4292 melpp daniil-sizov vasundhrakhatter faheemzunjani karbophos yongish pooja-malvi259 meiclin alinapetukhova nmadruga jwsun-github msaadie acdoon1987 onlinecursos markgreenwood droth820 wuthmone valiat pdayanandfullstack-course1-module3's Issues
Food2Fork.com has shut down.
RSpec fails to run out of the box
While attempting to setup this assignment, I initially ran RSpec, before writing any code, after installing the required gems, as I would normally do with any test in place. For some reason the test fails, I cannot figure out why?
This is the console output:
C:/Sites/fullstack-course1-module3/Assignments/Lesson03-Assignment01-HTTP-Client/student-start/spec/recipe_spec.rb:1:in `require_relative': C:/Sites/fullstack-course1-module3/Assignments/Lesson03-Assignment01-HTTP-Client/student-start/module3_1_assignment.rb:5: syntax error, unexpected '\n', expecting :: or '[' or '.' (SyntaxError)
C:/Sites/fullstack-course1-module3/Assignments/Lesson03-Assignment01-HTTP-Client/student-start/module3_1_assignment.rb:9: syntax error, unexpected keyword_end, expecting end-of-input
from C:/Sites/fullstack-course1-module3/Assignments/Lesson03-Assignment01-HTTP-Client/student-start/spec/recipe_spec.rb:1:in `<top (required)>'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `load'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `block in load_spec_files'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `each'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `load_spec_files'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:106:in `setup'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:92:in `run'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke'
from C:/RubyOnRails/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/exe/rspec:4:in `<top (required)>'
from C:/RubyOnRails/Ruby2.2.0/bin/rspec:23:in `load'
from C:/RubyOnRails/Ruby2.2.0/bin/rspec:23:in `<main>'
gogorunner repository
WHEN I code in terminal :git clone https://github.com/ramunni/gogorunner.git
I get this
Cloning into 'gogorunner'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
warning: unable to access '/Users/anthonyramunni/.config/git/attributes': Permission denied
food2fork api changes
Looks like Food2Fork updated their API endpoint to use https
and they dropped the www
so the rspec tests fail.
JSON::ParserError in CoursesController#index
When I run the fullstack-course1-module3 project and type http://localhost:3000/courses/index in my browser, it showed:
JSON::ParserError in CoursesController#index
795: unexpected token at ' <title>Action not found</title> <style> html, body, pre { margin: 0; padding: 0; font-family: Monaco, 'Lucida Console', monospace; background: #ECECEC; } h1 { margin: 0; background: #AD632A; padding: 20px 45px; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.3); border-bottom: 1px solid #9F5805; font-size: 28px; } p#detail { margin: 0; padding: 15px 45px; background: #F6A960; border-top: 4px solid #D29052; color: #733512; text-shadow: 1px 1px 1px rgba(255,255,255,.3); font-size: 14px; border-bottom: 1px solid #BA7F5B; } </style>
Action not found
For request 'GET /api/catalog.v1/courses?query=jhu&q=search&fields=smallIcon%2CshortDescription'
'I am not sure how to fix it!!!
Lesson03-Assignment01-HTTP-Client
Hi,
I'm trying to do the first assignment and I get the next message:
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/common.rb:155:in `parse': 795: unexpected token at 'FORBIDDEN' (JSON::ParserError)
I don't know what to do...
i'm adding my code
require 'httparty'
class Recipe
include HTTParty
base_uri 'http://food2fork.com/api'
default_params fields: "image_url,source_url,f2f_url,title,publisher_url,social_rank,page",key: ENV["FOOD2FORK_KEY"]
format :json
def self.for term
get("/search", query: { q: term})["elements"]
end
end
internal error when accessing food2fork
I got :
Internal error
Ticket issued: F2F/78.11.43.106.2016-06-27.09-07-22.7c07beb1-ef2e-44f8-92ae-fed7fd8e6e59
Is it temporary or something is wrong with the site?
Thanks
Krzysiek
base_uri changed
parse error in model coursera.rb due to base_uri
i changed it to base_uri 'https://api.coursera.org/api/courses.v1' and now it works
WebMock is blocking requests
spec file should include WebMock.allow_net_connect!
error while creating a new gem
hi
when I tried to install a new gem a get that error :
ERROR: Could not find a valid gem 'rspec' (>= 0) in any repository
ExecJS::ProgramError in Greeter#hello
Hi,
I try to enter "http://localhost:3000/greeter/hello" after I add greeter controller but IA get the next error message : ExecJS::ProgramError in Greeter#hello.
I did exactly what you did In your lecture.
what can I do to make the page work?
Module3 Coursera project
When I type in http://localhost:3000/courses/index, I get an error message
SON::ParserError in CoursesController#index
822: unexpected token at ' <title>Coursera - API Route Does Not Exist</title>
API Route Does Not Exist
Check whether this route is exposed in the routing table.
I followed the earlier, 2017 jun post recommendation to change coursera API. to
base_uri 'https://api.coursera.org/api//courses.v1'
default_params fields: "photoURL,description", q: "search"
Is this correct?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.