Couldn't find matching udev devices

311

I just had exactly the same error but with my ASUS Zenfone 2 on Xubuntu 15.10.

I tried a different USB port (3.0) and it just worked, I suspect the MTP setting wants a better port. Either that or there is something wrong with my USB 2.0 port (and the OPs port)

You could try a different port - on a different PC if you have to.

Share:
311

Related videos on Youtube

manonthemat
Author by

manonthemat

Updated on September 18, 2022

Comments

  • manonthemat
    manonthemat over 1 year

    I have type definitions for A and B defined in the schema.graphql file. Resolvers for these are auto-generated and work well (in other places).

    To create a scoring mechanism that ranks nodes with label B in relation to the node with label A, I am writing a CustomResolver query that executes a cypher query and returns a collection of bs and a computed score as defined in the ScoredBs type.

    The schema.graphql file looks like this.

    type Query {
      CustomResolver(idA: ID!, idsB: [ID!]!): [ScoredBs]
    }
    type A {
      id: ID! @id
      # and some more stuff of course
    }
    type B {
      id: ID! @id
      # more fields that use the @relation or @cypher decorator
    }
    type ScoredBs {
      bs: [B]
      score: Float
    }
    

    This is where the custom resolver is defined:

    const resolvers = {
      Query: {
        CustomResolver: async (
          parent,
          { idA, idsB },
          context,
          info
        ) => {
          const cypher = `
          MATCH (a:A {id: $idA})
          MATCH (a)<--(b:B) WHERE b.id IN $idsB
    
          WITH
            b
    
          RETURN DISTINCT collect(b) AS bs, rand() AS score
          ORDER BY score DESC
          `
          const session = context.driver.session()
          const results = await session
            .run(cypher, { idA, idsB })
            .then((result) => {
              return result.records.map((record) => {
                return {
                  bs: record.get('bs'),
                  score: record.get('score')?.low || null,
                }
              })
            })
            .catch(console.log)
            .then((results) => {
              session.close()
              return results
            })
          return results
        },
      },
    }
    

    When I run the query in the apollo-server graphql playground i am receiving an error:

    "message": "Resolve function for "B.id" returned undefined",

    query {
      CustomResolver(
        idA:"2560886f-654b-4047-8d7a-386cd7d9f670",
        idsB: ["01ec8367-a8ae-4600-9f88-ec141b2cae2c", "032f9a88-98c3-4968-8388-659ae26d63b3"]
      ) {
        bs {
          id
        }
        score
      }
    }
    
    • user.dz
      user.dz almost 9 years
      Could you post output of sudo lsusb with phone plugged in
    • Kannan Soorej
      Kannan Soorej almost 9 years
      Okay, I can do that soon ...
    • user.dz
      user.dz almost 9 years
      Another thing, the ppa you have mentioned does not contains mtp-tools & mtpfs , are you sure it's the correct ppa? or could you point me to the reference you are flowing its instructions? Please, make an edit to your original post see edit link at the bottom of your question.
    • KGIII
      KGIII over 8 years
      Have you tried enabling USB Mass Storage in your phone's settings? (Sorry for the late answer, I'm just going through trying to clean up some old questions that don't have answers.)
    • Kannan Soorej
      Kannan Soorej over 8 years
      Please do not tell me sorry for your late answer .... It's Okay .... Now, I have no memory card inside my Lumia 540 Phone (it was an old memory card and it became faulty and unable to use it now) Still it shows me the same errors without the SANDISK 4GB memory card ....