Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in process filter: Wrong type argument: char-or-string-p, nil #1

Closed
linevych opened this issue Apr 4, 2016 · 2 comments
Closed

Comments

@linevych
Copy link
Contributor

linevych commented Apr 4, 2016

I'm tying to shorten url with goo-url-shorten, but it returns me following errors:

Contacting host: www.googleapis.com:443
error in process filter: goo-callback: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil
"my-api-key"

I've already try to use server and browser API keys — same result.

  • GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
    of 2015-03-07 on trouble, modified by Debian
  • url-shortener 20150805
@linevych
Copy link
Contributor Author

linevych commented Apr 4, 2016

Sorry it was my fault. I've tried to send request using curl and it returns me error:

curl https://www.googleapis.com/urlshortener/v1/url\?key\=myprojectkey \
  -H 'Content-Type: application/json' \
  -d '{"longUrl": "http://www.google.com/"}'          
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. URL Shortener API has not been used in project my_project_id before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/urlshortener/overview?project=my_project_id then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "extendedHelp": "https://console.developers.google.com/apis/api/urlshortener/overview?project=my_project_id"
   }
  ],
  "code": 403,
  "message": "Access Not Configured. URL Shortener API has not been used in project my_project_id before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/urlshortener/overview?project=my_project_id then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
 }

So I just enable access for it as mentioned in the manual.

@linevych linevych closed this as completed Apr 4, 2016
@yuyang0
Copy link
Owner

yuyang0 commented Apr 5, 2016

When I write this package, providing an api key for goo.gl is optional, now things seem changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants