first time authorization redirects outside of canvas

I'm trying to use Mogli to authorize the user, and access information in a Ruby on Rails Facebook application.  The first time the user access the application, it asks the user to authorize the application.  After allowing, it loads the desired page on a blank page, rather than within the canvas.  How can I keep it within the canvas?

Can you ask this question on the mailing list or on a site like stack overflow? It sounds like a configuration problem, not a library problem.

It would be helpful if you include code of the relevant actions and log entries.
Mike
On Dec 13, 2011, at 7:24 AM, ragingsquirrel3 wrote:

Question is posted here on stack overflow
http://stackoverflow.com/questions/8475710/ruby-facebook-app-redirects-outside-of-canvas-after-authorizing.
Please let me know if you or anyone can shed some light on what's going
on.  This seems to be happening with the simple Sinatra app created by
Facebook when creating an application hosted by Heroku, using the automated
integration.
Thanks,
Travis
On Mon, Dec 12, 2011 at 4:16 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Can you ask this question on the mailing list or on a site like stack
overflow? It sounds like a configuration problem, not a library problem.

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3112909

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3122812

Attached to this message is the controller I'm using, as well a printout of
the log.
Also, if you want to see what's going on to better understand the problem,
log into facebook and try to see my test app here,
https://apps.facebook.com/test_app_giraffe/home/index.
On Tue, Dec 13, 2011 at 11:24 AM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

It would be helpful if you include code of the relevant actions and log
entries.
Mike
On Dec 13, 2011, at 7:24 AM, ragingsquirrel3 wrote:

Question is posted here on stack overflow

http://stackoverflow.com/questions/8475710/ruby-facebook-app-redirects-outside-of-canvas-after-authorizing
.

Please let me know if you or anyone can shed some light on what's going
on.  This seems to be happening with the simple Sinatra app created by
Facebook when creating an application hosted by Heroku, using the
automated
integration.
Thanks,
Travis
On Mon, Dec 12, 2011 at 4:16 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Can you ask this question on the mailing list or on a site like stack
overflow? It sounds like a configuration problem, not a library problem.

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3112909

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3122812

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125220

Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$ heroku logs
2011-12-13T16:40:22+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:40:22+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:40:22+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:40:22+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=39ms status=302 bytes=251
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI" for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by HomeController#create as HTML
2011-12-13T16:40:23+00:00 app[web.1]:   Parameters: {"code"=>"AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"}
2011-12-13T16:40:23+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms service=390ms status=302 bytes=112
2011-12-13T16:40:23+00:00 app[web.1]: Redirected to http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:40:23+00:00 app[web.1]: Completed 302 Found in 384ms
2011-12-13T16:40:23+00:00 app[web.1]: cache: [GET /home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI] miss
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/index" for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (15.4ms)
2011-12-13T16:40:25+00:00 app[web.1]: Completed 200 OK in 1810ms (Views: 61.2ms | ActiveRecord: 0.0ms)
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=1814ms status=200 bytes=526
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /assets/application-1c9609bc58b1e77c196de29021583379.css] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/assets/application-1c9609bc58b1e77c196de29021583379.css dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /assets/application-ae30e133eabbb10d9464189d3fb71e25.js] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/assets/application-ae30e133eabbb10d9464189d3fb71e25.js dyno=web.1 queue=0 wait=0ms service=13ms status=200 bytes=99533
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started POST "/home/index" for <IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:50:49+00:00 app[web.1]:   Parameters: {"signed_request"=>"ZwRNjezLbiNI8AzhVYXRJbVt0MBdzM0sprsvNxxhbaE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTA0OSwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [POST /home/index] invalidate, pass
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.1" 302 122 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.0" 302 111 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[router]: POST gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=4ms status=302 bytes=111
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started GET "/home/new" for <IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#new as HTML
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 0ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:50:49+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=4ms status=302 bytes=251
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.0" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.1" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started POST "/home/index" for <IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:53:03+00:00 app[web.1]:   Parameters: {"signed_request"=>"n86vEa1-8l9VtBvoFQ7EOjNRAa4BMHP_ynYCpAjYQsQ.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTE4MiwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:53:03+00:00 app[web.1]: cache: [POST /home/index] invalidate, pass
2011-12-13T16:53:03+00:00 heroku[router]: POST gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=14ms status=302 bytes=111
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.1" 302 122 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.0" 302 111 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started GET "/home/new" for <IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#new as HTML
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 2ms
2011-12-13T16:53:03+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:53:03+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=8ms status=302 bytes=251
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.0" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.1" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr" for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by HomeController#create as HTML
2011-12-13T16:53:12+00:00 app[web.1]:   Parameters: {"code"=>"AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"}
2011-12-13T16:53:12+00:00 app[web.1]: Redirected to http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:53:12+00:00 app[web.1]: Completed 302 Found in 337ms
2011-12-13T16:53:12+00:00 app[web.1]: cache: [GET /home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr] miss
2011-12-13T16:53:12+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms service=341ms status=302 bytes=112
2011-12-13T16:53:12+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:12 -0800] "GET /home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr HTTP/1.1" 302 112 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/index" for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:53:13+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: Completed 200 OK in 762ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:53:13+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:13 -0800] "GET /home/index HTTP/1.1" 200 526 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:13+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=776ms status=200 bytes=526
Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$

Is your configuration set up correctly in that your canvas url points to your full app name? I don't do any canvas apps, so I can't really tell you how to fix it. I got fed up with issues like this and just stopped doing them.
Mike
On Dec 13, 2011, at 10:57 AM, ragingsquirrel3 wrote:

Attached to this message is the controller I'm using, as well a printout of
the log.
Also, if you want to see what's going on to better understand the problem,
log into facebook and try to see my test app here,
https://apps.facebook.com/test_app_giraffe/home/index.
On Tue, Dec 13, 2011 at 11:24 AM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

It would be helpful if you include code of the relevant actions and log
entries.
Mike
On Dec 13, 2011, at 7:24 AM, ragingsquirrel3 wrote:

Question is posted here on stack overflow

http://stackoverflow.com/questions/8475710/ruby-facebook-app-redirects-outside-of-canvas-after-authorizing
.

Please let me know if you or anyone can shed some light on what's going
on.  This seems to be happening with the simple Sinatra app created by
Facebook when creating an application hosted by Heroku, using the
automated
integration.
Thanks,
Travis
On Mon, Dec 12, 2011 at 4:16 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Can you ask this question on the mailing list or on a site like stack
overflow? It sounds like a configuration problem, not a library problem.

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3112909

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3122812

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125220

Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$ heroku logs
2011-12-13T16:40:22+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:40:22+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:40:22+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:40:22+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=39ms status=302 bytes=251
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI" for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by HomeController#create as HTML
2011-12-13T16:40:23+00:00 app[web.1]:   Parameters: {"code"=>"AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"}
2011-12-13T16:40:23+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms service=390ms status=302 bytes=112
2011-12-13T16:40:23+00:00 app[web.1]: Redirected to http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:40:23+00:00 app[web.1]: Completed 302 Found in 384ms
2011-12-13T16:40:23+00:00 app[web.1]: cache: [GET /home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI] miss
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/index" for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (15.4ms)
2011-12-13T16:40:25+00:00 app[web.1]: Completed 200 OK in 1810ms (Views: 61.2ms | ActiveRecord: 0.0ms)
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=1814ms status=200 bytes=526
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /assets/application-1c9609bc58b1e77c196de29021583379.css] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/assets/application-1c9609bc58b1e77c196de29021583379.css dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /assets/application-ae30e133eabbb10d9464189d3fb71e25.js] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/assets/application-ae30e133eabbb10d9464189d3fb71e25.js dyno=web.1 queue=0 wait=0ms service=13ms status=200 bytes=99533
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started POST "/home/index" for <IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:50:49+00:00 app[web.1]:   Parameters: {"signed_request"=>"ZwRNjezLbiNI8AzhVYXRJbVt0MBdzM0sprsvNxxhbaE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTA0OSwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [POST /home/index] invalidate, pass
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.1" 302 122 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.0" 302 111 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[router]: POST gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=4ms status=302 bytes=111
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started GET "/home/new" for <IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#new as HTML
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 0ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:50:49+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=4ms status=302 bytes=251
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.0" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.1" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started POST "/home/index" for <IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:53:03+00:00 app[web.1]:   Parameters: {"signed_request"=>"n86vEa1-8l9VtBvoFQ7EOjNRAa4BMHP_ynYCpAjYQsQ.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTE4MiwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:53:03+00:00 app[web.1]: cache: [POST /home/index] invalidate, pass
2011-12-13T16:53:03+00:00 heroku[router]: POST gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=14ms status=302 bytes=111
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.1" 302 122 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.0" 302 111 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started GET "/home/new" for <IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#new as HTML
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 2ms
2011-12-13T16:53:03+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:53:03+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms service=8ms status=302 bytes=251
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.0" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.1" 302 251 "https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr" for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by HomeController#create as HTML
2011-12-13T16:53:12+00:00 app[web.1]:   Parameters: {"code"=>"AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"}
2011-12-13T16:53:12+00:00 app[web.1]: Redirected to http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:53:12+00:00 app[web.1]: Completed 302 Found in 337ms
2011-12-13T16:53:12+00:00 app[web.1]: cache: [GET /home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr] miss
2011-12-13T16:53:12+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms service=341ms status=302 bytes=112
2011-12-13T16:53:12+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:12 -0800] "GET /home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr HTTP/1.1" 302 112 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/index" for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by HomeController#index as HTML
2011-12-13T16:53:13+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: Completed 200 OK in 762ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:53:13+00:00 heroku[nginx]: <IP_ADDRESS> - - [13/Dec/2011:08:53:13 -0800] "GET /home/index HTTP/1.1" 200 526 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:13+00:00 heroku[router]: GET gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms service=776ms status=200 bytes=526
Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125730

Yes it is.  After first time authorization, there are no problems, and
everything works as desired.  Thanks for your time and frankness in
responding to my problems.  I don't think Facebook knows how to fix it
either, because their automatically generated application has the same
issue, interestingly.  It is actually their code which led me to try to use
mogli.
Are you aware of any other tools that might allow me to access FB user
information server-side?  Mogli is doing everything I want it to, in a way
that's really cool, minus this issue.
Travis
On Tue, Dec 13, 2011 at 12:11 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Is your configuration set up correctly in that your canvas url points to
your full app name? I don't do any canvas apps, so I can't really tell you
how to fix it. I got fed up with issues like this and just stopped doing
them.
Mike
On Dec 13, 2011, at 10:57 AM, ragingsquirrel3 wrote:

Attached to this message is the controller I'm using, as well a printout
of
the log.
Also, if you want to see what's going on to better understand the
problem,
log into facebook and try to see my test app here,
https://apps.facebook.com/test_app_giraffe/home/index.
On Tue, Dec 13, 2011 at 11:24 AM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

It would be helpful if you include code of the relevant actions and log
entries.
Mike
On Dec 13, 2011, at 7:24 AM, ragingsquirrel3 wrote:

Question is posted here on stack overflow

http://stackoverflow.com/questions/8475710/ruby-facebook-app-redirects-outside-of-canvas-after-authorizing

.

Please let me know if you or anyone can shed some light on what's going
on.  This seems to be happening with the simple Sinatra app created by
Facebook when creating an application hosted by Heroku, using the
automated
integration.
Thanks,
Travis
On Mon, Dec 12, 2011 at 4:16 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Can you ask this question on the mailing list or on a site like stack
overflow? It sounds like a configuration problem, not a library
problem.

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3112909

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3122812

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125220

Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$ heroku
logs
2011-12-13T16:40:22+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:40:22+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:40:22+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:40:22+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=39ms status=302 bytes=251
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET
"/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"
for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by
HomeController#create as HTML
2011-12-13T16:40:23+00:00 app[web.1]:   Parameters:
{"code"=>"AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"}
2011-12-13T16:40:23+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms
service=390ms status=302 bytes=112
2011-12-13T16:40:23+00:00 app[web.1]: Redirected to
http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:40:23+00:00 app[web.1]: Completed 302 Found in 384ms
2011-12-13T16:40:23+00:00 app[web.1]: cache: [GET
/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI]
miss
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Rendered home/index.html.erb
within layouts/application (15.4ms)
2011-12-13T16:40:25+00:00 app[web.1]: Completed 200 OK in 1810ms (Views:
61.2ms | ActiveRecord: 0.0ms)
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=1814ms status=200 bytes=526
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET
/assets/application-1c9609bc58b1e77c196de29021583379.css] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/assets/application-1c9609bc58b1e77c196de29021583379.cssdyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET
/assets/application-ae30e133eabbb10d9464189d3fb71e25.js] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/assets/application-ae30e133eabbb10d9464189d3fb71e25.jsdyno=web.1 queue=0 wait=0ms service=13ms status=200 bytes=99533
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started POST "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:50:49+00:00 app[web.1]:   Parameters:
{"signed_request"=>"ZwRNjezLbiNI8AzhVYXRJbVt0MBdzM0sprsvNxxhbaE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTA0OSwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to
https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [POST /home/index]
invalidate, pass
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.1" 302 122 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.0" 302 111 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[router]: POST
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=4ms status=302 bytes=111
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started GET "/home/new" for
<IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#new
as HTML
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 0ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:50:49+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=4ms status=302 bytes=251
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.0" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.1" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started POST "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:53:03+00:00 app[web.1]:   Parameters:
{"signed_request"=>"n86vEa1-8l9VtBvoFQ7EOjNRAa4BMHP_ynYCpAjYQsQ.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTE4MiwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to
https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:53:03+00:00 app[web.1]: cache: [POST /home/index]
invalidate, pass
2011-12-13T16:53:03+00:00 heroku[router]: POST
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=14ms status=302 bytes=111
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.1" 302 122 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.0" 302 111 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started GET "/home/new" for
<IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#new
as HTML
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 2ms
2011-12-13T16:53:03+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:53:03+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=8ms status=302 bytes=251
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.0" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.1" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET
"/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"
for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by
HomeController#create as HTML
2011-12-13T16:53:12+00:00 app[web.1]:   Parameters:
{"code"=>"AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"}
2011-12-13T16:53:12+00:00 app[web.1]: Redirected to
http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:53:12+00:00 app[web.1]: Completed 302 Found in 337ms
2011-12-13T16:53:12+00:00 app[web.1]: cache: [GET
/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr]
miss
2011-12-13T16:53:12+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms
service=341ms status=302 bytes=112
2011-12-13T16:53:12+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:12 -0800] "GET
/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr
HTTP/1.1" 302 112 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:53:13+00:00 app[web.1]: Rendered home/index.html.erb
within layouts/application (0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: Completed 200 OK in 762ms (Views:
1.6ms | ActiveRecord: 0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:53:13+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:13 -0800] "GET /home/index HTTP/1.1" 200 526 "-"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101
Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:13+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=776ms status=200 bytes=526
Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125730

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125951

I know there were some other libraries, but I don't know if they are maintained. If you file a bug report with Facebook, CC me on it. I'd be happy to work with them on debugging it. Also, if you can create a sample app with the same problem I can try to look at it.
Mike
On Dec 13, 2011, at 11:19 AM, ragingsquirrel3 wrote:

Yes it is.  After first time authorization, there are no problems, and
everything works as desired.  Thanks for your time and frankness in
responding to my problems.  I don't think Facebook knows how to fix it
either, because their automatically generated application has the same
issue, interestingly.  It is actually their code which led me to try to use
mogli.
Are you aware of any other tools that might allow me to access FB user
information server-side?  Mogli is doing everything I want it to, in a way
that's really cool, minus this issue.
Travis
On Tue, Dec 13, 2011 at 12:11 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Is your configuration set up correctly in that your canvas url points to
your full app name? I don't do any canvas apps, so I can't really tell you
how to fix it. I got fed up with issues like this and just stopped doing
them.
Mike
On Dec 13, 2011, at 10:57 AM, ragingsquirrel3 wrote:

Attached to this message is the controller I'm using, as well a printout
of
the log.
Also, if you want to see what's going on to better understand the
problem,
log into facebook and try to see my test app here,
https://apps.facebook.com/test_app_giraffe/home/index.
On Tue, Dec 13, 2011 at 11:24 AM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

It would be helpful if you include code of the relevant actions and log
entries.
Mike
On Dec 13, 2011, at 7:24 AM, ragingsquirrel3 wrote:

Question is posted here on stack overflow

http://stackoverflow.com/questions/8475710/ruby-facebook-app-redirects-outside-of-canvas-after-authorizing

.

Please let me know if you or anyone can shed some light on what's going
on.  This seems to be happening with the simple Sinatra app created by
Facebook when creating an application hosted by Heroku, using the
automated
integration.
Thanks,
Travis
On Mon, Dec 12, 2011 at 4:16 PM, Mike Mangino <
<EMAIL_ADDRESS>
wrote:

Can you ask this question on the mailing list or on a site like stack
overflow? It sounds like a configuration problem, not a library
problem.

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3112909

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3122812

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125220

Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$ heroku
logs
2011-12-13T16:40:22+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:40:22+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:40:22+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:40:22+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=39ms status=302 bytes=251
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET
"/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"
for <IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by
HomeController#create as HTML
2011-12-13T16:40:23+00:00 app[web.1]:   Parameters:
{"code"=>"AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI"}
2011-12-13T16:40:23+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms
service=390ms status=302 bytes=112
2011-12-13T16:40:23+00:00 app[web.1]: Redirected to
http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:40:23+00:00 app[web.1]: Completed 302 Found in 384ms
2011-12-13T16:40:23+00:00 app[web.1]: cache: [GET
/home/create?code=AQAucNrwfkbCGjZjx3yumeZ4PKVPT9y1Fz5YFe9FjHjI_dDM1kum9ylTSrTrW9f8AZ0abQcLUwinCHW1pl14tf5wfjwbrEQdQObtCmrumF6n1H-FYd48ToDNrMMuVYOz0rQGs0_EV-_QTMG_njHrwaKQi9EoAjT9omoKhnSlEjcTbIus66qrn3yjMWefDy2p_EI]
miss
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]:
2011-12-13T16:40:23+00:00 app[web.1]: Started GET "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:40:23 -0800
2011-12-13T16:40:23+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story doesn't
exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Warning: property story_tags
doesn't exist for class Mogli::Post
2011-12-13T16:40:25+00:00 app[web.1]: Rendered home/index.html.erb
within layouts/application (15.4ms)
2011-12-13T16:40:25+00:00 app[web.1]: Completed 200 OK in 1810ms (Views:
61.2ms | ActiveRecord: 0.0ms)
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=1814ms status=200 bytes=526
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET
/assets/application-1c9609bc58b1e77c196de29021583379.css] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/assets/application-1c9609bc58b1e77c196de29021583379.cssdyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
2011-12-13T16:40:25+00:00 app[web.1]: cache: [GET
/assets/application-ae30e133eabbb10d9464189d3fb71e25.js] miss
2011-12-13T16:40:25+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/assets/application-ae30e133eabbb10d9464189d3fb71e25.jsdyno=web.1 queue=0 wait=0ms service=13ms status=200 bytes=99533
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started POST "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:50:49+00:00 app[web.1]:   Parameters:
{"signed_request"=>"ZwRNjezLbiNI8AzhVYXRJbVt0MBdzM0sprsvNxxhbaE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTA0OSwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to
https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [POST /home/index]
invalidate, pass
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.1" 302 122 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "POST /home/index HTTP/1.0" 302 111 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[router]: POST
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=4ms status=302 bytes=111
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]:
2011-12-13T16:50:49+00:00 app[web.1]: Started GET "/home/new" for
<IP_ADDRESS> at 2011-12-13 08:50:49 -0800
2011-12-13T16:50:49+00:00 app[web.1]:   Processing by HomeController#new
as HTML
2011-12-13T16:50:49+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:50:49+00:00 app[web.1]: Completed 302 Found in 0ms
2011-12-13T16:50:49+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:50:49+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=4ms status=302 bytes=251
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.0" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:50:49+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:50:49 -0800] "GET /home/new HTTP/1.1" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started POST "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:53:03+00:00 app[web.1]:   Parameters:
{"signed_request"=>"n86vEa1-8l9VtBvoFQ7EOjNRAa4BMHP_ynYCpAjYQsQ.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTMyMzc5NTE4MiwidXNlciI6eyJjb3VudHJ5IjoidXMiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19"}
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 1ms
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to
https://gentle-beach-9785.heroku.com/home/new
2011-12-13T16:53:03+00:00 app[web.1]: cache: [POST /home/index]
invalidate, pass
2011-12-13T16:53:03+00:00 heroku[router]: POST
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=14ms status=302 bytes=111
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.1" 302 122 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "POST /home/index HTTP/1.0" 302 111 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]:
2011-12-13T16:53:03+00:00 app[web.1]: Started GET "/home/new" for
<IP_ADDRESS> at 2011-12-13 08:53:03 -0800
2011-12-13T16:53:03+00:00 app[web.1]:   Processing by HomeController#new
as HTML
2011-12-13T16:53:03+00:00 app[web.1]: Redirected to
https://graph.facebook.com/oauth/authorize?client_id=129778233802563&redirect_uri=http%3A%2F%2Fgentle-beach-9785.heroku.com%2Fhome%2Fcreate&scope=publish_stream&display=page
2011-12-13T16:53:03+00:00 app[web.1]: Completed 302 Found in 2ms
2011-12-13T16:53:03+00:00 app[web.1]: cache: [GET /home/new] miss
2011-12-13T16:53:03+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/new dyno=web.1 queue=0 wait=0ms
service=8ms status=302 bytes=251
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.0" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:03+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:03 -0800] "GET /home/new HTTP/1.1" 302 251 "
https://apps.facebook.com/test_app_giraffe/home/index" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET
"/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"
for <IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by
HomeController#create as HTML
2011-12-13T16:53:12+00:00 app[web.1]:   Parameters:
{"code"=>"AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr"}
2011-12-13T16:53:12+00:00 app[web.1]: Redirected to
http://gentle-beach-9785.heroku.com/home/index
2011-12-13T16:53:12+00:00 app[web.1]: Completed 302 Found in 337ms
2011-12-13T16:53:12+00:00 app[web.1]: cache: [GET
/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr]
miss
2011-12-13T16:53:12+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/create dyno=web.1 queue=0 wait=0ms
service=341ms status=302 bytes=112
2011-12-13T16:53:12+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:12 -0800] "GET
/home/create?code=AQAfKQsduFvvqUMJHXEOCjqX0uSyefF1HtS3vyhAH4C_cZqpG07h8Pffd9O5uDXb1Lmk3K0DXeB0A8Zooa8O771gEHiRD_6FRpnxovoPFhr0PRCK02n6tIJW7NGwPPSrqUywwivTBviUruw6c7Uskp6DM790Lqubbg6YdOQzLqaas-TgzbuooU2a-DkBoZbKeftlIQGmbaRIK-14QmkBfPnr
HTTP/1.1" 302 112 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
rv:8.0.1) Gecko/20100101 Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]:
2011-12-13T16:53:12+00:00 app[web.1]: Started GET "/home/index" for
<IP_ADDRESS> at 2011-12-13 08:53:12 -0800
2011-12-13T16:53:12+00:00 app[web.1]:   Processing by
HomeController#index as HTML
2011-12-13T16:53:13+00:00 app[web.1]: Rendered home/index.html.erb
within layouts/application (0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: Completed 200 OK in 762ms (Views:
1.6ms | ActiveRecord: 0.0ms)
2011-12-13T16:53:13+00:00 app[web.1]: cache: [GET /home/index] miss
2011-12-13T16:53:13+00:00 heroku[nginx]: <IP_ADDRESS> - -
[13/Dec/2011:08:53:13 -0800] "GET /home/index HTTP/1.1" 200 526 "-"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101
Firefox/8.0.1" gentle-beach-9785.heroku.com
2011-12-13T16:53:13+00:00 heroku[router]: GET
gentle-beach-9785.heroku.com/home/index dyno=web.1 queue=0 wait=0ms
service=776ms status=200 bytes=526
Travis-Sheppards-MacBook-Pro:gentle-beach-9785 travissheppard$

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125730

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3125951

Reply to this email directly or view it on GitHub:
https://github.com/mmangino/mogli/issues/94#issuecomment-3126080

Hey Mike,
I spoke to you a couple months ago about problems I was having using Mogli
with my Facebook Canvas app, the problems I was having with it.  I found
that the Koala gem has a really nice way of getting the oauth token from
the signed_request parameter, which is only suited for Canvas apps.  It's
working like a dream.
Cheers,
Travis


Reload from updateConfig should not be skipped

Some fixes to make sure that a Reload() after the call to updateConfig() is not skipped.
https://github.com/rancher/rancher/issues/9419

LGTM


The tables paginator is bound when only form-filter is needed

At iommi/table:1766 paginator is eagerly bound. This causes an expensive rows.count() to be performed. Can the table.paginator attribute be made lazy?

Fixed by #153


com.intellij.modules.json requirement WSL

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: WSL
- Continue version: end of oct 2024
- IDE version: pycharm 2024.2.3

Description

Related to https://intellij-support.jetbrains.com/hc/en-us/community/posts/21479962703890-JSON-plugin-dependency-cannot-be-resolved
To reproduce
Install 0.0.79 on pycharm 2024.2.3 on WSL.
Log output
No response

same here: phpstorm on Windows remote development by ssh on ubuntu

Related https://github.com/continuedev/continue/issues/2780

is there a known workaround?

I have met the same issue

I have the same issue. Pycharm and IntelliJ IDEA (2024.3.1 RC) via Gateway (2024.3) + SSH to Centos. Continue plugin v0.0.75 (newest available).

Thanks for the +1 here folks, I've followed up with the JB team to try and figure out what's going on here: https://plugins.jetbrains.com/plugin/22707-continue

Also happening to me on JetBrains Rider 2024.3 and Gateway 2024.3 with WSL running Ubuntu 24 with plugin version 0.0.83

Hey folks! If you are installing you plugin to the frontend IDE in remote deveoplent environment, consider using com.intellij.json.frontend dependency. The com.intellij.modules.json plugin is present only on the backend side, which might be a problem you are facing

Thanks for the follow up here @NikitaKatkov !
We have users that install our extension both for local and remote development. Does that imply that we should list both com.intellij.json.frontend and com.intellij.modules.json as dependencies?

Unfortunately, it's not that easy yet.
The thing is that the frontend JSON plugin has only basic editor support in it (lexer, syntax highlighter, PSI,  if you are familiar with them). As I can see, your plugin has a couple of JsonSchemaProviderFactorys registered, and they belong to the backend only, there is no such entity in the frontend plugin intentionally.
What seems to be good enough solution in your case is to introduce an optional JSON plugin dependency. It means, that whether or not the dependency is available at runtime, your core functionality works as expected. The part requiring JSON to be present will only be enabled ifyour plugin is installed in the backend IDE, where JSON schemas reside.
Please take a look at the documentation here: https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#optional-plugin-dependencies . It'll require to extract <depends>com.intellij.modules.json</depends> line and JsonSchemaProviders reqgistration into another xml and to mention it in the main plugin.xml descriptor.

Thanks for the taking the time to look at the codebase and provide guidance @NikitaKatkov ! Pretty simple update to make overall.

Reopening until this is released and folks have confirmed it's functioning for them.

I can't test this yet as the build for intellij has failed: https://github.com/continuedev/continue/actions/runs/12440630220/job/34736395992
and installing from disk also doesn't work
super excited to try this out

@greek-stasia we fixed that build error and republished in this job: https://github.com/continuedev/continue/actions/runs/12472440299/job/34811245653


Standardize style in samples

Standardize style in samples

Was this PR supposed to be targeted on master?

Was this PR supposed to be targeted on master?

No, to PR-6. Thanks.


Fixed up/down axis for 8BitDo Zero on Windows

Created this updated config on Windows 10 this evening. Also did the same for Linux and macOS and the button/axes matches with Linux and macOS. I don't know why there is a mismatch with the old config, the 8BitDo Zero has no firmware upgrade possibility.
These are the "raw" configs for reference (Linux and macOS matches the ones already in the database):
linux-bt
05000000a00500003232000009010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Linux,
macos-bt
03000000a00500003232000009010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Mac OS X,
windows-bt
03000000a00500003232000000000000,Bluetooth Wireless Controller,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Windows,

Ah, so this needs to be submitted to the SDL2 project instead...

yeah a previous version didn’t support axes on buttons or dpad, so there are a lot of these where dpad mappings are incorrectly mapped to leftx/lefty. discussed here https://github.com/gabomdq/SDL_GameControllerDB/issues/260
as you say, this one’s from upstream

Yes we don't modify upstream mappings in this repo. We will automatically get it next time SDL updates.


Improve documentation on Registers and Qubits

Based on user feedback from the Qiskit Slack, I added more explanations of commonly used methods and attributes of circuits. In particular:

explained how to extract information from circuits
added information on creating and managing registers
added information measuring circuits
fixes #1469

@shraddha-aangiras we've recently edited the history on main, can you please reset your branch using the following commands.
# Make sure you're on your branch
git switch improvedocs-issue1469
# Overwrite your branch with our history
git reset --hard origin/main
# re-apply your commits on top of the new history
git cherry-pick c370ad180de77c0b816dc025dd719806112f753a  361ac3ffb84190f25930a9c6a94819f4eb058c9f
# Check everything looks correct
git diff main
# If all good, force-push to your branch
git push --force

Let me know if you have any questions. Sorry for the inconvenience.

@frankharkins No problem, will get that along with the suggested changes (thanks @javabster!) fixed by tomorrow

@frankharkins can you let me know if I did it right? Thanks!

Thanks @beckykd @kaelynj, made the changes you suggested :)


[Grow] When used withe Dialog receives unexpected enter/leaveTransitionDuration props

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
Grow transition honors the enter/leave durations propagated from the Dialog component.
Current Behavior
Dialog accepts enter and leaveTransitionDuration props but the Grow transition only accepts the transitionDuration prop. This effectively ignores the props given to the Dialog.
Steps to Reproduce (for bugs)
https://codesandbox.io/s/l476j33mjq

Click 'Show dialog'
Observe that react warning in console

Context
One can use props directly on a Grow transition (and in fact the defaults are great in my case) so not a super important bug but it might rear it's head in other places.
Your Environment

Tech
Version

Material-UI
1.0.0-beta.12

React
16 rc3

browser
chrome

I think that the best path going forward is to have all our transition component following this API:
type Props = {
  enterTransitionDuration: number,
  leaveTransitionDuration: number,
};

Hence, removing the transitionDuration property. What do you think?

Yeah makes sense to me for the transitions to all follow the same public API. Should make using them easier in general.


[Feature Request] Open the terminal instead of the dufault cmd/powershell

Description of the new feature/enhancement
When opening .bat or .bash and other terminal files it should load run in the terminal not with the default cmd and powershell.
Proposed technical implementation details
There could be a right click option or have windows ask when opening them.

#492


Trash deletion in remote g. drive - not working?

Using rclone v1.47.0-073-gcff85f0b-beta @ W10 x64
Trying to empty Trash in a G. Drive remote.
Doing
rclone about remote:
rclone cleanup remote:
rclone about remote:
In cleanup used -v, -vv, -vvv (produces information but not related to cleanup...)
Size of Trash before and after is same. No output related to deletion.
Potential bug?
thanks,
TIA

I think emptying the trash happens in the background somewhat asyncrhonously.  People have reported it taking 24 hours for lots of trash.  It doesn't mention that in the API docs though.
This could do with a note in the docs...

thanks, will observe and report back.
CT

@ncw
Thanks again.
Confirmed, trash is cleaned.
Proposed text for docs
If you wish to empty your trash you can use the rclone cleanup remote: command which will permanently delete all your trashed files. This command does not take any path arguments.
Note that Google Drive takes some time lapse (minutes to days) to empty trash - beware that cleanup does not happen instantly and no output is echoed, so there will be no confirmation even using -v, -vv nor -vvv.
CT

Great :-)
I've lightly edited your text and stuck it in the docs - thank you :-)
9aac2d6965222c6ae8483695e5835ec3737eed8a


Type error on load

After installing with sudo I get the following error:
[wickedshell@lackey ~]$ dronecan_gui_tool
2022-01-19 14:43:56,767 INFO dronecan_gui_tool.main Spawned
2022-01-19 14:43:57,182 INFO dronecan_gui_tool.widgets.console Jupyter is not available
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/dronecan_gui_tool/widgets/console.py", line 18, in <module>
    from qtconsole.rich_jupyter_widget import RichJupyterWidget
  File "/usr/lib/python3.10/site-packages/qtconsole/rich_jupyter_widget.py", line 4, in <module>
    from base64 import decodestring
ImportError: cannot import name 'decodestring' from 'base64' (/usr/lib/python3.10/base64.py)
2022-01-19 14:43:57,193 INFO dronecan_gui_tool.main Starting the application
2022-01-19 14:44:05,075 INFO dronecan.driver.slcan IO process started with PID 40257
2022-01-19 14:44:05,075 INFO dronecan.driver.slcan Could not adjust priority of the IO process: PermissionError(1, 'Operation not permitted')
2022-01-19 14:44:05,078 INFO dronecan.driver.slcan Init: Sending command b''
2022-01-19 14:44:05,078 INFO dronecan.driver.slcan Init: Waiting for ACK...
2022-01-19 14:44:05,179 INFO dronecan.driver.slcan Init: Sending command b'C'
2022-01-19 14:44:05,179 INFO dronecan.driver.slcan Init: Waiting for ACK...
2022-01-19 14:44:05,180 INFO dronecan.driver.slcan Init: Sending command b'S8'
2022-01-19 14:44:05,180 INFO dronecan.driver.slcan Init: Waiting for ACK...
2022-01-19 14:44:05,225 INFO dronecan.driver.slcan Init: Sending command b'O'
2022-01-19 14:44:05,225 INFO dronecan.driver.slcan Init: Waiting for ACK...
2022-01-19 14:44:05,229 INFO dronecan.driver.slcan Init: Sending command b'F'
2022-01-19 14:44:05,229 INFO dronecan.driver.slcan Init: Waiting for ACK...
2022-01-19 14:44:05,230 INFO dronecan.driver.slcan Init: Ignoring byte b'F' while waiting for ACK
2022-01-19 14:44:05,230 INFO dronecan.driver.slcan Init: Ignoring byte b'0' while waiting for ACK
2022-01-19 14:44:05,230 INFO dronecan.driver.slcan Init: Ignoring byte b'0' while waiting for ACK
2022-01-19 14:44:05,330 INFO dronecan.driver.slcan RX worker started
2022-01-19 14:44:05,330 INFO dronecan.driver.slcan IO process initialization complete
2022-01-19 14:44:05,431 INFO dronecan_gui_tool.main Creating main window; iface '/dev/serial/by-id/usb-Zubax_Robotics_Zubax_Babel_28003E00185130465638362000000000-if00'
QLayout: Attempting to add QLayout "" to RealtimeLogWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to RealtimeLogWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to DynamicNodeIDAllocatorWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to FileServerWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to MainWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to MainWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to MainWindow "", which already has a layout
2022-01-19 14:44:05,439 INFO dronecan_gui_tool.main Init complete, invoking the Qt event loop
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 141, in pixmap
    self.paint(QPainter(pm), QRect(QPoint(0, 0), size), mode, state)
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 135, in paint
    self.painter.paint(
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 65, in paint
    self._paint_icon(iconic, painter, rect, mode, state, opt)
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 112, in _paint_icon
    painter.setFont(iconic.font(prefix, draw_size))
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 311, in font
    font.setPixelSize(size)
TypeError: setPixelSize(self, int): argument 1 has unexpected type 'float'
QPainter::end: Painter ended with 2 saved states
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 141, in pixmap
    self.paint(QPainter(pm), QRect(QPoint(0, 0), size), mode, state)
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 135, in paint
    self.painter.paint(
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 65, in paint
    self._paint_icon(iconic, painter, rect, mode, state, opt)
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 112, in _paint_icon
    painter.setFont(iconic.font(prefix, draw_size))
  File "/usr/lib/python3.10/site-packages/qtawesome/iconic_font.py", line 311, in font
    font.setPixelSize(size)
TypeError: setPixelSize(self, int): argument 1 has unexpected type 'float'
QPainter::end: Painter ended with 2 saved states

The painter tracebacks repeats a number of times that I trimmed here for brevity. The icons are all missing in the GUI as well.
Enviorment:
[wickedshell@lackey ~]$ python --version
Python 3.10.1

https://doc.qt.io/qt-5/qfont.html#setPixelSize     says that font.setPixelSize(size) expects its argument to be an integer in the QT bindings themselves,  and python package 'qtawesome'  => iconic_font.py isn't  properly ensuring that...   is that right?

either way... tridge's mention suggests this might now be fixed in master...  can u retest, @WickedShell  ?

@davidbuzz I can't retest, because in the effort to fix the installer, the installer is now completely broken for me. If I do a pip install as sudo (which should not be needed, but seperate converastion), it succeeds without any listed error, but there isn't a valid program anywhere on disk to run. If I try to install it as user then it just bails due to invalid permissions.
$ sudo pip install install git+https://github.com/DroneCAN/gui_tool@master
[sudo] password for wickedshell:
Collecting git+https://github.com/DroneCAN/gui_tool@master
  Cloning https://github.com/DroneCAN/gui_tool (to revision master) to /tmp/pip-req-build-joh_rwof
  Running command git clone -q https://github.com/DroneCAN/gui_tool /tmp/pip-req-build-joh_rwof
  Running command git submodule update --init --recursive -q
Collecting install
  Downloading install-1.3.5-py3-none-any.whl (3.2 kB)
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (59.1.1)
Requirement already satisfied: dronecan>=1.0.0 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (1.0.5)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (3.5)
Requirement already satisfied: qtawesome>=0.3.1 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (0.3.3)
Requirement already satisfied: qtconsole>=4.2.0 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (5.2.2)
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (5.4.1)
Requirement already satisfied: easywebdav>=1.2 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (1.2.0)
Requirement already satisfied: numpy in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (1.22.1)
Requirement already satisfied: pyqt5 in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (5.15.6)
Requirement already satisfied: traitlets in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (5.1.1)
Requirement already satisfied: jupyter-client in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (7.1.1)
Requirement already satisfied: ipykernel in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (6.7.0)
Requirement already satisfied: pygments in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (2.11.2)
Requirement already satisfied: qtpy in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (2.0.0)
Requirement already satisfied: pyqtgraph in /usr/lib/python3.10/site-packages (from dronecan-gui-tool==1.0.0) (0.12.3)
Requirement already satisfied: requests in /usr/lib/python3.10/site-packages (from easywebdav>=1.2->dronecan-gui-tool==1.0.0) (2.26.0)
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from qtawesome>=0.3.1->dronecan-gui-tool==1.0.0) (1.16.0)
Requirement already satisfied: pyzmq>=17.1 in /usr/lib/python3.10/site-packages (from qtconsole>=4.2.0->dronecan-gui-tool==1.0.0) (22.3.0)
Requirement already satisfied: ipython-genutils in /usr/lib/python3.10/site-packages (from qtconsole>=4.2.0->dronecan-gui-tool==1.0.0) (0.2.0)
Requirement already satisfied: jupyter-core in /usr/lib/python3.10/site-packages (from qtconsole>=4.2.0->dronecan-gui-tool==1.0.0) (4.9.1)
Requirement already satisfied: ipython>=7.23.1 in /usr/lib/python3.10/site-packages (from ipykernel->dronecan-gui-tool==1.0.0) (8.0.1)
Requirement already satisfied: tornado<7.0,>=4.2 in /usr/lib/python3.10/site-packages (from ipykernel->dronecan-gui-tool==1.0.0) (6.1)
Requirement already satisfied: nest-asyncio in /usr/lib/python3.10/site-packages (from ipykernel->dronecan-gui-tool==1.0.0) (1.5.4)
Requirement already satisfied: matplotlib-inline<0.2.0,>=0.1.0 in /usr/lib/python3.10/site-packages (from ipykernel->dronecan-gui-tool==1.0.0) (0.1.3)
Requirement already satisfied: debugpy<2.0,>=1.0.0 in /usr/lib/python3.10/site-packages (from ipykernel->dronecan-gui-tool==1.0.0) (1.5.1)
Requirement already satisfied: stack-data in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.1.4)
Requirement already satisfied: decorator in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (5.1.1)
Requirement already satisfied: black in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (21.12b0)
Requirement already satisfied: jedi>=0.16 in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.18.1)
Requirement already satisfied: backcall in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.2.0)
Requirement already satisfied: pickleshare in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.7.5)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (3.0.24)
Requirement already satisfied: pexpect>4.3 in /usr/lib/python3.10/site-packages (from ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (4.8.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in /usr/lib/python3.10/site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.8.3)
Requirement already satisfied: python-dateutil>=2.1 in /usr/lib/python3.10/site-packages (from jupyter-client->dronecan-gui-tool==1.0.0) (2.8.2)
Requirement already satisfied: entrypoints in /usr/lib/python3.10/site-packages (from jupyter-client->dronecan-gui-tool==1.0.0) (0.3)
Requirement already satisfied: ptyprocess>=0.5 in /usr/lib/python3.10/site-packages (from pexpect>4.3->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.7.0)
Requirement already satisfied: wcwidth in /usr/lib/python3.10/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.2.5)
Requirement already satisfied: mypy-extensions>=0.4.3 in /usr/lib/python3.10/site-packages (from black->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.4.3)
Requirement already satisfied: typing-extensions!=<IP_ADDRESS> in /usr/lib/python3.10/site-packages (from black->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (4.0.1)
Collecting tomli<2.0.0,>=0.2.6
  Downloading tomli-1.2.3-py3-none-any.whl (12 kB)
Requirement already satisfied: click>=7.1.2 in /usr/lib/python3.10/site-packages (from black->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (8.0.3)
Requirement already satisfied: platformdirs>=2 in /usr/lib/python3.10/site-packages (from black->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (2.4.1)
Requirement already satisfied: pathspec<1,>=0.9.0 in /usr/lib/python3.10/site-packages (from black->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.9.0)
Requirement already satisfied: PyQt5-Qt5>=5.15.2 in /usr/lib/python3.10/site-packages (from pyqt5->dronecan-gui-tool==1.0.0) (5.15.2)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in /usr/lib/python3.10/site-packages (from pyqt5->dronecan-gui-tool==1.0.0) (12.9.0)
Requirement already satisfied: packaging in /usr/lib/python3.10/site-packages (from qtpy->dronecan-gui-tool==1.0.0) (20.9)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/lib/python3.10/site-packages (from packaging->qtpy->dronecan-gui-tool==1.0.0) (2.4.7)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.10/site-packages (from requests->easywebdav>=1.2->dronecan-gui-tool==1.0.0) (4.0.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.10/site-packages (from requests->easywebdav>=1.2->dronecan-gui-tool==1.0.0) (3.3)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.10/site-packages (from requests->easywebdav>=1.2->dronecan-gui-tool==1.0.0) (1.26.8)
Requirement already satisfied: asttokens in /usr/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (2.0.5)
Requirement already satisfied: pure-eval in /usr/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.2.1)
Requirement already satisfied: executing in /usr/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->dronecan-gui-tool==1.0.0) (0.8.2)
Installing collected packages: tomli, install
  Attempting uninstall: tomli
    Found existing installation: tomli 2.0.0
    Uninstalling tomli-2.0.0:
      Successfully uninstalled tomli-2.0.0
Successfully installed install-1.3.5 tomli-1.2.3


IotManager 2.0

I get IotManager 2.0, thank you so much
But it can not use "widget": "range"
Thank you so much

Widget RANGE in TODO list now

Hi all,
IotManager v2 connect to broker is very slow.
Can not read property 'CordovaMqTTPlugin' of undefine.

Hi, All!
@iranweld EXIT button released.
@lastun, IoT Manager 2.0 does not have several old widgets. But version 2.0.8 (published 02.02.2020) have range and new widgets progress-round and progress-line. Its version also have in app Widgets Collection, where you can see examples and view and send to email code for all widgets.
@tranpic, You can try WSS connection type (this use MQTTJS engine, not CordovaMqTTPlugin).

Hi, Victor,
slide widget is auto return to 52%, so can not change value.

@tranpic Hi! You must publish new status from device, after receiving message from control, range widget worked as toggle. After receiving new status widget range move to new status position

yes, i had publish new status with value from 0 to 1023. i will debug again, thank you so much

@tranpic, remember for mapping range from 0-1023 to 0-100 you must use k:0.0977  in config - see  example

Здравия!
Приложение не работает на версиях Андроид 4.4.2.
Пробовал установить на разных планшетах и телефонах с версией Андроида ниже 6.0. Приложение устанавливается, запускается, выводится логотип, переходящий в бесконечный белый экран. Из приложения можно выйти.

Hi Victor,
Can IoTmanager v2 vibrate ???
I set vibrate: 50 in status bus have not vibrate.
Thank

@tranpic Hi! Vibrate worked now in v2.1.0 for Android and iOS


HHH-10251 : Memory Leak when using Reference Cached, bytecode enhance…

…d Immutable Entities

You are still letting the PersistenceContext sneak into the ImmutableEntityEntry if it happens that it is serialized and them deserialized as part of a particular Session.  For that and a few other reasons I did some additional changes on top of yours.  Please test them out.

Also, please send pull requests against master.

Applied upstream, with some changes.


Tailor categorical embedding size based on number of levels

num_levels / 2?

This is implemented already. I don't know why I added this issue.


ChainDB: stop leaking ImmutableDB iterators

The reader and iterator implementations were leaking ImmutableDB iterators. As
a result, we were leaking file descriptors.
Multiple people ran out of file descriptors because of this when running the
cardano-node.
For example, when a node with an empty ChainDB connects to a node containing a
large ChainDB (with a chain longer than k, so that its ImmutableDB contains
blocks), e.g., the cardano-byron-proxy, it will starting downloading all
blocks starting from Genesis from that node. Since the chain sync client is
not yet pipelined, headers are synced one-by-one. As headers arrive
one-by-one, block-fetch requests are also made one-by-one. Each of these
requests is served by the block-fetch server, which uses a ChainDB.Iterator
for each range of blocks (in this case always 1 block). Each of these
ChainDB.Iterators, one for each block, uses an ImmutableDB.Iterator, which
opens the epoch file that contains that block. Since we were leaving these
ImmutableDB.Iterator open, we were leaking file descriptors.
The ChainDB q-s-m test now checks for file handle leaks. The leaks described above were caught by this check and after fixing them, the check passes again.

@karknu @cleverca22 both of you have run into this issue albeit with the confusing FsDeviceFull error message (I'll rectify the error message in a separate PR).

bors r+


How could I list commits in a pull request or feature branch?

I tried a lot of these.
https://www.google.com/search?q=git+show+commits+on+a+feature+branch
Let's use this as an example:
https://github.com/go-gitea/gitea/pull/7089/commits
There are 7 commits in this PR. Suppose I am standing in the head of the feature branch after running one of the following
git checkout "mrsdizzie:fix-7068"
git checkout 177092a
Is there any way to list the 7 commits on CLI? Any git commands? Any shell scripts? Any wget/curl/REST API?
 Before PR merge, it produced the commit where the feature branch started as desired. After PR merge, it produced the commit where the merge occurred, which is not what I want.
https://github.com/go-gitea/gitea/pull/7089
I cannot even checkout 177092aa4b40457654123d13ebcf921843b7a877 now. Can we find any test cases in https://github.com/go-gitea/gitea/pulls ?
git log $(git merge-base master branch-name)..branch-name
This behavior also changes before and after PR merge.

Yes, it would change after a pr merge because the merge base would be the merge point at that point.
You would need to use the shas of the trees pre-merge to get the original merge-base but look at git's own documentation about merge-base.

Are there any REST API? Can I wget and parse the html of the PR webpage?

What are you trying to get exactly? Using Gitea feature branches as an example for looking at commits on branches is not necessarily the most sensible - we squash our commits into a single commit with the pr # in the commit line and once those features are squashed most developers will simply delete the branch losing that information.
Other projects may use a merge branch strategy which will keep the history at a cost of a potentially complicated tree. In those cases you should be able to interrogate the git history as described above. Or if you prefer graphically with gitk and I think there's a graphical representation available in Gitea.
In terms of APIs - apart from git I don't think there is one and in general I think we should avoid creating APIs to git - git is itself an API. I think however our PullRequest APIs should give you the git URL to pull/fetch the branch - and if they don't or it's not obvious then we should change that.

What are you trying to get exactly?

https://nvie.com/posts/a-successful-git-branching-model/
Our team practice git flow. I am handling pull requests, merging, and code review for about 40 developers. When a pull requests comes, I would like to list the changed files from a feature branch and review the code. I would like to exclude files changed on the feature branch as a result of catching up with (daily merging from) the develop branch.
https://try.gitea.io/api/swagger
I am going to try the APIs here.
Since I am also the admin, I can look at the sqlite file (gitea.db) for pull_request.merge_base. Is the merge_base hash frozen at the time of PR creation? I considering doing a set operation like
(git diff --name-only feature_head..merge_base) minus (git diff --name-only develop_head..merge_base)
How can I figure out the parent of pull_request.merged_commit_id? There should be 2 parents. One on the feature branch and another on the develop branch.
git rev-parse $merged_commit_id^1 gives only one result. Maybe I have to parse the output of git log for the line Merge: <develop_hash> <feature_hash>


Unwrap of None when in Sdmmc::init_card

I'm trying to use a SDMMC card on my stm32f401rc, but when I run init_card, I get this over defmt:
0.000915 ERROR panicked at 'unwrap failed: crate :: rcc :: get_freqs().pll1_q'
error: `Unwrap of a None option value`
└─ embassy_stm32::sdmmc::{impl#40}::kernel_clk::{closure#0} @ C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\embassy-stm32-0.1.0\src\fmt.rs:179
0.001495 ERROR panicked at C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\defmt-0.3.6\src\lib.rs:368:5:
explicit panic
└─ panic_probe::print_defmt::print @ C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\panic-probe-0.3.1\src\lib.rs:104

I think Sdmmc::init_card unwraps a None. I think I've tracked it to the kernel_clk macro in embassy-stm32::sdmmc, but IDK what else to do with it.
My SDMMC IC is a MKDV2GCL-NE, the datasheet is here. The datasheet says D3 has to be driven high in order for it to go into SD mode. ~Does it have something to do with that?~ Edit: Nevermind, I did p.PC11.set_high() before creating the sdmmc object, and nothing chnaged.
Anyway, here's a minimal example.
use embassy_stm32::{sdmmc::{self, Sdmmc}, time::khz, Config};
use embassy_executor::Spawner;
use {defmt_rtt as _, panic_probe as _};

use embassy_stm32::{
    bind_interrupts, peripherals::SDIO,
};
bind_interrupts!(pub struct Irqs {
    SDIO => sdmmc::InterruptHandler<SDIO>;
});

#[embassy_executor::main]
async fn main(spawner: Spawner) {
    let p = embassy_stm32::init(Config::default());

    let mut sdmmc = Sdmmc::new_4bit(
        p.SDIO,
        Irqs,
        p.DMA2_CH3,
        p.PC12, // clk
        p.PD2, // cmd
        p.PC8, // d0
        p.PC9, // d1
        p.PC10, // d2
        p.PC11, // d3
        sdmmc::Config::default(),
    );

    let result = sdmmc.init_card(khz(400)).await;
}

Note that I don't even do anything with the Result, it unwraps in the call stack of init_card somewhere.
Here is the dependencies section of Cargo.toml
embassy-stm32 = { version = "0.1", features = [ "defmt", "stm32f401rc", "unstable-pac", "memory-x", "time-driver-any", "exti", "time" ] }
embassy-sync = { version = "*", features = [ "defmt" ] }
embassy-executor = { version = "0.5", features = [ "nightly", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers" ] }
embassy-time = { version = "0.3", features = [ "defmt", "defmt-timestamp-uptime", "tick-hz-32_768" ] }

panic-probe = { version = "0.3", features = ["print-defmt"] }

defmt = "0.3"
defmt-rtt = "0.4"

cortex-m = { version = "0.7.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7.3"

I'm on nightly-x86_64-pc-windows-msvc, rustc 1.78.0-nightly (3246e7951 2024-02-19)
Thanks for all the hard work, I'm really enjoying using embassy!

Nevermind, this fixed it. Just have to set the config like is done in the examples.
let mut config = Config::default();
{
    use embassy_stm32::rcc::*;
    config.rcc.hse = Some(Hse {
        freq: Hertz(8_000_000),
        mode: HseMode::Bypass,
    });
    config.rcc.pll_src = PllSource::HSE;
    config.rcc.pll = Some(Pll {
        prediv: PllPreDiv::DIV4,
        mul: PllMul::MUL168,
        divp: Some(PllPDiv::DIV2), // 8mhz / 4 * 168 / 2 = 168Mhz.
        divq: Some(PllQDiv::DIV7), // 8mhz / 4 * 168 / 7 = 48Mhz.
        divr: None,
    });
    config.rcc.ahb_pre = AHBPrescaler::DIV1;
    config.rcc.apb1_pre = APBPrescaler::DIV4;
    config.rcc.apb2_pre = APBPrescaler::DIV2;
    config.rcc.sys = Sysclk::PLL1_P;
}
let p = embassy_stm32::init(config);