10 edited tags
| link
9 added 13 characters in body
source | link

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

This Bug after all discussion here. It was notified to Wolfram Support [CASE:1884981]. I'll update this post in the future with the responses by suportsupport assistance .

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

This Bug after all discussion here. It was notified to Wolfram Support [CASE:1884981]. I'll update this post in the future with the responses by suport.

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

This Bug after all discussion here. It was notified to Wolfram Support [CASE:1884981]. I'll update this post in the future with the responses by support assistance .

    Tweeted twitter.com/#!/StackMma/status/539635384620425217
8 added 159 characters in body
source | link

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

This Bug after all discussion here. It was notified to Wolfram Support [CASE:1884981]. I'll update this post in the future with the responses by suport.

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time when it executes, it works and then without doing anything, it stops working, and an error appears forever in the session. Then, I should restart Mathematica.

Import::fmterr: Cannot import data as JSON format. >>

For example, I could try with URLFetch, you could use other like ServiceExecute , I saw that other guys get the same errors.

URLFetch["https://api.twitter.com/1.1/application/rate_limit_status.\
    json?resources=search", 
        "Method" -> "GET",
        "Headers" -> { "Authorization" -> "Bearer " <> $token}
      ]

Out:

"{\"rate_limit_context\":{\"application\":\"ZIfS6A0hLFFGn0rTK8AA\"},\"\
resources\":{\"search\":{\"\\/search\\/tweets\":{\"limit\":450,\"\
remaining\":441,\"reset\":1417461650}}}}"

Using ImportString[%, "JSON"]

{"resources" -> {"search" -> {"/search/tweets" -> {"reset" -> 
        1417464421, "limit" -> 450, "remaining" -> 450}}}, 
 "rate_limit_context" -> {"application" -> "ZIfS6A0hLFFGn0rTK8AA"}}

And in an unexpected way, if I try the same:

Import::fmterr: Cannot import data as JSON format. >>

After that, all functions that can process JSON stop working. Any idea?

UPDATE: If you can reproduce my current problem in a real example. I'm doing the next:

   $token = "AAAAAAAAAAAAAAAAAAAAACIzUwAAAAAAIcK0ag%2BYQgJMWChjJFIOvC3oBc0%3DPSlfWyj98uQTquGq9oBuVwVovUCfKuOwHSpSSIvMZSJeBRsbQD";

The next function use ImportString and sometimes it fails.

Clear[buscarTuits];
buscarTuits[expr_Association:{}] := Module[
{query, res},
    query =  URLBuild["https://api.twitter.com/1.1/search/tweets.json", expr];
    res = ImportString[URLFetch[query, 
        "Method"-> "GET",
        "Headers"-> { "Authorization"-> "Bearer "<>$token}], "JSON"]; 
    Return[res];
];

buscarTuits[expr_String]:= buscarTuits[Association["q"-> expr]];

And,

buscarTuits["wolfram"] 

Sometimes appear the next error and others times don't.

Import::fmterr: Cannot import data as JSON format. >>

This Bug after all discussion here. It was notified to Wolfram Support [CASE:1884981]. I'll update this post in the future with the responses by suport.

7 deleted 440 characters in body
source | link
6 added 1100 characters in body
source | link
5 added 185 characters in body
source | link
4 grammar & spelling
source | link
3 edited tags
| link
2 edited tags
| link
1
source | link